Difference between revisions of "Rsync"

From Server Knowledge Base
Jump to navigationJump to search
(Created page with "== Backup files incremental with rsync to a NTFS-Partition == rsync -rtvu --modify-window=1 --progress /media/SOURCE/ /media/TARGET/ This will backup the _contents_ of /medi...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


This will backup the _contents_ of /media/SOURCE to /media/TARGET where TARGET is formatted with ntfs. The --modify-window lets rsync ignore the less accurate timestamps of NTFS.
This will backup the _contents_ of /media/SOURCE to /media/TARGET where TARGET is formatted with ntfs. The --modify-window lets rsync ignore the less accurate timestamps of NTFS.
== Examples ==
http://www.jveweb.net/en/archives/2010/11/synchronizing-folders-with-rsync.html#jveweb_en_014_08
http://www.thegeekstuff.com/2010/09/rsync-command-examples/


== Migrate Server with rsync ==
== Migrate Server with rsync ==

Latest revision as of 16:41, 1 August 2015

Backup files incremental with rsync to a NTFS-Partition

rsync -rtvu --modify-window=1 --progress /media/SOURCE/ /media/TARGET/

This will backup the _contents_ of /media/SOURCE to /media/TARGET where TARGET is formatted with ntfs. The --modify-window lets rsync ignore the less accurate timestamps of NTFS.

Examples

http://www.jveweb.net/en/archives/2010/11/synchronizing-folders-with-rsync.html#jveweb_en_014_08

http://www.thegeekstuff.com/2010/09/rsync-command-examples/

Migrate Server with rsync

rsync -ayz -e ssh --exclude=/proc --exclude=/sys --exclude=/dev / root@NEWHOST:/MNTDIR

Copies the complete root-dir of a linux server to another one, where the new harddisks are formatted and mounted. Very useful to migrate a root-server to another one. Credit to User Bones