Removing prefix when making a backup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Removing prefix when making a backup

Mitar
Hi!

I am trying to make a Docker image which would make backups of the host system.

For that purpose, I mount into a Docker container two volumes:

/source
/backup

And then I run:

rdiff-backup --include-globbing-filelist list /source /backup

My issue is that with this approach "source" directory is put into
/backup, and all paths in "list" have to start with /source as well.
Is there a way to tell rdiff-backup that the /source should be used as
root and that prefix should be removed when making a backup, and also
for include-globbing-filelist? So that everything behaves like:

rdiff-backup --include-globbing-filelist list / /backup


Mitar

--
http://mitar.tnode.com/
https://twitter.com/mitar_m

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki