rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Some interesting questions about rdiff


From: Eric Jensen
Subject: Re: [rdiff-backup-users] Some interesting questions about rdiff
Date: Thu, 13 Dec 2007 11:50:18 -0500

Hi Salvador,

My question is, is possible to add FileB to the last backup?

I mean, is possible some like rdiff-backup --update --include ~myFolder/FileB --exclude-regexp '.' myFolder backup

Then, If i list buckup content at last backup time, It should show:

myFolder

FilaA
FileB (added)
FileC

Well, one thing to remember is that if you do several backups of the same directory to the same rdiff-backup repository, then the backup repository always shows the state of the source directory at the time of the most recent backup. So in your example, all you would need to do to add in FileB is not to exclude it, i.e. to run rdiff-backup with no --exclude options at all. Then FileA and FileC would stay there (since they are still in the source directory), and FileB would be added (since this time you haven't told rdiff-backup to exclude it). So all you would need to do is

rdiff-backup  myFolder  backup

No explicit includes or excludes are needed, if all you want is for the backup repository to exactly mirror the source filesystem. This doesn't cause rdiff-backup to do any extra work to keep FileA or FileC, since they were already there. (It will check their modification times to make sure they haven't changed, but if they are the same, it won't re-copy those files.)

Hope this helps,

Eric







reply via email to

[Prev in Thread] Current Thread [Next in Thread]