[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] create-full-path patch
From: |
Keith Edmunds |
Subject: |
[rdiff-backup-users] create-full-path patch |
Date: |
Fri, 24 Dec 2004 12:18:23 +0000 |
Hi all
The attached patch adds a "--create-full-path" option to rdiff-backup; the
patch is against version 0.13.4.
I like to maintain the backup tree as a mirror of the client system,
but I don't want to back up every directory. For example, I may want to
back up/var/lib/cvs without backing up the entire /var tree. In the past
this could be achieved with include/exclude options, but it is difficult to
maintain as other directories may be created under /var. If the command
rdiff-backup /var/lib/cvs remotesys::/backups/var/lib/cvs
is issued, it is necessary for the directory /backups/var/lib to exist
remotely. The new option will create the full path if required:
rdiff-backup --create-full-path /var/lib/cvs \
remotesys::/backups/var/lib/cvs
This should be used with caution: if there is a typo in the remote path the
remote filesystem could fill up very quickly (by creating a duplicate
backup tree). For this reason this option is primarily aimed at scripts
which automate backups.
Comments, patches-to-patch, etc, welcome.
Keith
--
----------------------------------------------------------------------
Small business computer support: http://www.tiger-computing.co.uk
Linux consultancy: http://www.TheLinuxConsultancy.co.uk
----------------------------------------------------------------------
- [rdiff-backup-users] create-full-path patch,
Keith Edmunds <=