- Lester Chan's Website - https://lesterchan.net -

Rsync To Dropbox / Jungle Disk

Just want to share some rsync [1] code snippets that I used to backup my data to either Dropbox [2] or Jungle Disk [3] on my Mac.

I have problems finding/Googling the proper flags to use for rsync for Dropbox and Jungle Disk when I first got started with rsync on the Internet, hopefully this blog post will be useful for someone.

As Dropbox is essentially a folder on your Mac, the rsync flags are pretty straight forward, however the same cannot be said for Jungle Disk as it is using WebDAV [4] and storing the file over at Amazon S3 [5] or Rackspace Cloud Files [6] where file modification times will not be accurate.

 

Dropbox
/usr/local/bin/rsync -avz --delete --log-file='/path/to/Dropbox/logs/rsync/yourdomain.com.txt' --log-file-format='[%o] %f (%l bytes) (Last Modified: %M)' --exclude-from '/path/to/Dropbox/web/exclude_yourdomain.com.txt' -e ssh username@yourdomain.com:/home/username/public_html/ /path/to/Dropbox/web/yourdomain.com/

Rsync Flag Description

Layman’s Terms

 

Jungle Disk
/usr/local/bin/rsync --verbose --recursive --omit-dir-times --times --inplace --size-only --delete --log-file='/Volumes/webdav/web/logs/yourdomain.com.txt' --log-file-format='[%o] %f (%l bytes) (Last Modified: %M)' --exclude-from '/Volumes/webdav/web/excludes/yourdomain.com.txt' -e ssh username@yourdomain.com:/home/username/public_html/ '/Volumes/webdav/web/yourdomain.com/';

Rsync Flag Description

Layman’s Terms

Take a look at Rsync Manual Page [1] for more detailed explanations.

I am up for discussions under the comments =)