Created
August 18, 2011 14:33
-
-
Save piotrkilczuk/1154173 to your computer and use it in GitHub Desktop.
Rsync incremental media download script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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