Difference between revisions of "Rsync"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 5: Line 5:
 
Copy a folder ''.VirtualBox'' to /root:
 
Copy a folder ''.VirtualBox'' to /root:
 
  rsync -avv --stats --progress --partial .VirtualBox/ /root/.VirtualBox
 
  rsync -avv --stats --progress --partial .VirtualBox/ /root/.VirtualBox
 +
 +
[[Category:Commands]]

Revision as of 02:47, 4 January 2012

Rsync helps you to keep two folders in sync. This is possible over the network or local.

Copy a folder from server to the current working directory:

rsync -avv --stats --progress --partial server:/srv/repos/isos/SLES9/i386/SP2 .

Copy a folder .VirtualBox to /root:

rsync -avv --stats --progress --partial .VirtualBox/ /root/.VirtualBox