Michael Tokarev <mjt@xxxxxxxxxx> writes: > Dean S. Messing wrote: >> Michal Soltys writes: > [] >> : Rsync is fantastic tool for incremental backups. Everything that didn't >> : change can be hardlinked to previous entry. And time of performing the >> : backup is pretty much neglible. Essentially - you have equivalent of >> : full backups at almost minimal time and space cost possible. >> >> It has been some time since I read the rsync man page. I see that >> there is (among the bazillion and one switches) a "--link-dest=DIR" >> switch which I suppose does what you describe. I'll have to >> experiment with this and think things through. Thanks, Michal. > > I haven't actually read the rsync manpage to this detail, but I > do use rsync for backups this way, but a bit differently - yet > more understandable without referring to manpages... ;) > > the procedure is something like this: > > cd /backups > rm -rf tmp/ > cp -al $yesterday tmp/ > rsync -r --delete -t ... /filesystem tmp > mv tmp $today > > That is, link the previous backup to temp (which takes no space > except directories), rsync current files to there (rsync will > break links for changed files), and rename temp to $today. I was thinking Michal Soltys ment it this way. You can probably replace the cp invocation with an rsync one but that hardly changes things. I don't think you can do this in a single rsync call. Please correct me if I'm wrong. MfG Goswin - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html