Penguin

Differences between current version and predecessor to the previous major change of BackupNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 20 Last edited on Monday, September 4, 2006 4:46:47 pm by CraigBox
Older page: version 17 Last edited on Friday, May 26, 2006 2:52:54 pm by AristotlePagaltzis Revert
@@ -13,9 +13,11 @@
 !!! Tools 
  
 If you are looking for commercial dedicated backup tools, take a look at [Arkeia] and BackupExec. 
  
-For homegrown solutions, you can use tar(1) or rsync(1). The latter is particularly interesting as it can synch directory trees with minimal I/O. To copy to another machine/partition etc you can do <tt>rsync -av --rsh="ssh" sourcedir destdir</tt>. Other options you might like to consider on rsync(1) command line are <tt>-l</tt> which keeps symlinks intact, <tt>-z</tt> which compresses the data (useful over slow links), and <tt>--delete</tt> which deletes files which exist on the destination but not the source (use with caution!!) 
+For homegrown solutions, you can use tar(1) or rsync(1). The latter is particularly interesting as it can synch directory trees with minimal I/O. To copy to another machine/partition etc you can do <tt>rsync -av --rsh="ssh" sourcedir destdir</tt>. Other options you might like to consider on rsync(1) command line are <tt>-l</tt> which keeps symlinks intact, <tt>-z</tt> which compresses the data (useful over slow links), <tt>-u</tt> which checks that the destination is not newere , and <tt>--delete</tt> which deletes files which exist on the destination but not the source (use with caution!!)  
+  
+When using rsync(1) it is important whether you have a slash at the end of the directory or not. If you have the slash the destination directory is where it copies it too, otherwise it is one level up. For example to synchronise a directory test in the home directory to a machine with name remotepc and deleting files that aren't in the source you can do: <tt>rsync -luvaz --delete ~~/test remotepc:</tt>  
  
 rsync(1) has also been used as the basis for a number of [Free] tools, such as the excellent [rsnapshot|http://www.rsnapshot.org/], which lets you keep multiple backups at only slightly more space usage than a single day by keeping only one copy of files unchanged across backups. Another rsync(1)-based tool is rdiff-backup(1), a [Python] program based on rdiff(1). 
  
 !!! See also