Skip to content

Instantly share code, notes, and snippets.

@piotrkilczuk
Created August 18, 2011 14:33
Show Gist options
  • Save piotrkilczuk/1154173 to your computer and use it in GitHub Desktop.
Save piotrkilczuk/1154173 to your computer and use it in GitHub Desktop.
Rsync incremental media download script
#!/bin/bash
# Usage:
# rsync.sh re/mo/te/dir lo/cal/dir
# re/mo/te/dir will be appended to this
BASEDIR='user@host:/data/stor/www/...'
rsync --checksum --compress --exclude '.svn' --links --perms --progress --recursive --update --verbose $BASEDIR$1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment