Difference between revisions of "Rsync"

From Linuxintro
imported>ThorstenStaerk
(New page: Example: rsync -avv --stats --progress --partial server:/srv/repos/isos/SLES9/i386/SP2 .)
 
imported>ThorstenStaerk
Line 1: Line 1:
Example:
+
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 .
 
  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

Revision as of 06:10, 20 June 2011

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