Showing posts with label rsync. Show all posts
Showing posts with label rsync. Show all posts

25 July 2012

rsync to copy only new files

copy only new files (keep old files on server) to server.
rsync -avz -e 'ssh -i id_rsa' from/* server:~/to/
for just printing, not executing, of what it will do
-avzn

notes
  • works with local folders as well
  • auto create folder for you, no need mkdir