Welcome! » Log In » Create A New Profile

Include/Exclude advice

Posted by Ron Leach 
Ron Leach
Include/Exclude advice
June 23, 2017 03:59AM
List, good morning,

We use rdiff-backup to regularly backup our debian file-server, and we
wanted to additionally run a partial backup - into the same backup
directory - much more frequently for the more-volatile files (all the
files in our current projects). But when following the example from
http://www.nongnu.org/rdiff-backup/examples.html

rdiff-backup --include /srv/files/currentprojects --exclude '**'
/srv/files /backup-location

rdiff-backup also seemed to make increments of all the other files in
the *other* directories under /srv/files. I didn't expect this - I
had thought that the example I used would exclude all the directories
below /srv/files other than /srv/files/currentprojects .

I've read the man page especially the FILE SELECTION section, but I
think I have misunderstood the file include and exclude options, or
misunderstood the example. I admit that I didn't find the man page
easy to follow.

Is it possible to backup:
- only /srv/files/currentprojects,
- into the same backup directory that our full backup of /srv/files is
stored,
- with the intention that the currentprojects directory is backed-up
much more frequently
- but would still be restored if ever a complete restoration of
/srv/files were needed?

Grateful for any comment or advice,

regards, Ron

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
This message was imported via the External PhorumMail Module
Ron Leach
Re: Include/Exclude advice
June 23, 2017 04:59AM
On 23/06/2017 11:46, Mike Fleetwood wrote:
> On 23 June 2017 at 11:15, Ron Leach<ronleach@tesco.net> wrote:
>>
>> rdiff-backup also seemed to make increments of all the other files in the
>> *other* directories under /srv/files. I didn't expect this - I had thought
>> that the example I used would exclude all the directories below /srv/files
>> other than /srv/files/currentprojects .
>>
>
> I am no expert, but you experience coincides with my expectation that;
> backing up part of a directory tree to an rdiff-backup repository is
> implicitly saying all the excluded files have been removed so
> rdiff-backup records them as being deleted in the repository.
>

Ah. I wonder if, indeed, that's right; I hadn't thought of it that way.

Mike, thanks for that insight, I'll have to rethink what we're doing.

regards, Ron

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
This message was imported via the External PhorumMail Module
Sorry, only registered users may post in this forum.

Click here to login