# RootPrompt.org   Nothing but Unix.[Home] [Features] [Programming] [Mac OS X] [Search]


 Backups using hardlinks and rsync

This is a great trick and a well written article describing it. Kevin Korb put this together for the Greater Orlando Linux User Group.

"Rsync doesn't do incremental backups itself (actually it has recently gained that ability but I still prefer this method). In order to get incremental backups we will use a special feature of the cp command that will copy an entire directory tree by making hard links of each file instead of actually duplicating them. First you count up how many existing backups there are and decide if there are too many. If so delete the oldest until you are happy. Then you use cp -al to duplicate the most recent backup into a new directory with the current time stamp. Here is a demonstration:"
Backups using rsync

 (Submitted by Noel Wed Aug 10, 2005 )

  


Our content can be syndicated: Main page Mac Page

Copyright 1999-2005 Noel Davis. Noel also runs web sites about sailing and kayaking.
All trademarks are the property of their owners.
All articles are owned by their author