Dropbox Does Not Sync (Solved for Linux)

May 4, 2012

I uploaded files from my home (Linux) computer to Dropbox but could not access those files from my (Linux) laptop.  I was using the same distro (Fedora Core) for both computers with the same versions of Dropbox.  I was frustrated to say the least.  Fortunately I found the answer to my problem - courtesy of Fixing Dropbox Will Not Sync.

It seems the issue is permissions.  The author of the blog post included a script to fix the issue.  I used his script with a small alteration...  I removed the sudo parts of his chown and chmod commands.  Here is my edited version:

#!/bin/bash

# By Ed Wiget
# This fixes dropbox sync issues on linux

# get a list of files executable now
find ~/Dropbox -type f -perm -u+x > /tmp/dropbox_files-`date +%Y%m%d`

# fix the permissions
chown -R $USER ~/Dropbox
chmod -R u+rw ~/Dropbox
chown -R $USER ~/.dropbox
chmod -R u+rw ~/.dropbox
# remove any conflicting files from the file list above step 1
grep -v -e "conflicted copy" -e "Case Conflict" /tmp/dropbox_files-`date +%Y%m%d` > /tmp/dropbox_files-`date+%Y%m%d`.txt
# set the executable permissions back
for files in `echo /tmp/dropbox_files-\`date +%Y%m%d\`.txt` ; do chmod u+x "${files}" ; done

# remove any files that are in conflict
find ~/Dropbox -type f -name \*"conflicted copy"\* -exec rm -f "{}" \;
find ~/Dropbox -type f -name \*"Case Conflict"\* -exec rm -f "{}" \;

# remove temp files
rm -f /tmp/dropbox_files-`date +%Y%m%d`
rm -f /tmp/dropbox_files-`date +%Y%m%d`.txt

Short url : http://bit.ly/L8EF1w


Previous entry

Similar entries


Comments

No comments yet.


Pingbacks

Pingbacks are closed.


Trackbacks

Post your comment