Created
January 3, 2012 23:59
-
-
Save gnubyexample/1557663 to your computer and use it in GitHub Desktop.
rsync options source destination
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/dash | |
rsync -v -t -ogp -r files /var/www/vhosts/def.com/www/sites/def | |
Less well: rsync -v -t -r files /var/www/vhosts/def.com/www/sites/def | |
find /var/www/vhosts/def.com/www/sites/def/files/ -type f -perm 644 -exec chmod 775 {} \; | |
# You probably meant to include the -ogp flags in your rsync | |
# 775 file permissions are not great, but it is is one step up from 777 nonsense. | |
rsync -v -t -og -r rose0non ~/hglocal/ | |
rsync -v -t -og -r test ~/hglocal/rose0non/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment