Skip to content

Instantly share code, notes, and snippets.

@gnubyexample
Created January 3, 2012 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnubyexample/1557663 to your computer and use it in GitHub Desktop.
Save gnubyexample/1557663 to your computer and use it in GitHub Desktop.
rsync options source destination
#!/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