Difference between revisions of "Rsync"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
 
Line 1: Line 1:
 +
<metadesc>Easy example how to use rsync: rsync -avv --stats --progress --partial /srv/www/htdocs server:/srv/www</metadesc>
 
Rsync helps you to keep two folders in sync. This is possible over the network or local.
 
Rsync helps you to keep two folders in sync. This is possible over the network or local.
  

Latest revision as of 14:04, 15 December 2014

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

over the network

The following command sends the directory /srv/www/htdocs over to server:

rsync -avv --stats --progress --partial /srv/www/htdocs server:/srv/www
Common mistake
There is a difference between /srv/www/htdocs and /srv/www/htdocs/.

locally

Copy a folder .VirtualBox to /root:

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

See also