SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
How do I backup only one file ?
Author Message
Post How do I backup only one file ? 
Hello All,

Could someone give me the command line to back up only one file (let's say /etc/passwd) ?

TIA

View user's profile Send private message
Post How do I backup only one file ? 
On Tuesday 09 February 2010 10:10:08 peters wrote:
Could someone give me the command line to back up only one file (let's say
/etc/passwd) ?

rdiff-backup --include=/etc/passwd --exclude='**' /etc/ /destination/path

That is, you do one explicit include, followed by excluding everything else.

// Andreas

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post How do I backup only one file ? 
Andreas Olsson spake thusly on 02/09/2010 08:14 AM:
On Tuesday 09 February 2010 10:10:08 peters wrote:
Could someone give me the command line to back up only one file (let's say
/etc/passwd) ?

rdiff-backup --include=/etc/passwd --exclude='**' /etc/ /destination/path

That is, you do one explicit include, followed by excluding everything else.

// Andreas


Is this a scenario where you have a complete backup set, but once in a
while you just want to back up the one file? If so, I don't know if
there's a good way to do that. If you run the command Andreas has given
(which looks correct!), I think it would blow away all the other files
your backup set that don't match.

And using rdiff-backup for only one file seems of limited usefulness.

Scott


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB