Hi, we're currently syncing our cpool to an off-site location on a weekly
basis. Would it be feasible to only sync the latest of each backup rather than
the entire pool?
To elaborate, on Saturdays we run an rsync of the entire cpool to another
server to provide disaster recovery options. Is it
Couldn't their be an option to read the to-be-restored files from a
file (similar to what tar and rsync allow) but allowing basic restores
to be done form the command line.
Other parameters could either be via command line or added config.pl
settings if more permanent.
Craig Barratt via
Jeff,
For restores, there could be a long list of specific files or directories
to restore, which might not fit on the command line, so that's what
triggered putting everything in a request file and just passing its name.
There are also several other settings specific to the restore (eg, the path
Thanks Craig,
Why is restore inherently that much more complicated than dump?
It seems like config.pl already has a number of parameters built-in
for both including rsync args and pre/post restore commands.
Conceptually, I would think that what one needs to specify each time
is:
1. Host
2.
Jeff,
BackupPC_restore takes quite a few parameters, so many years ago I decided
to pass those parameters via a file rather than command-line arguments.
Probably a bad choice...
There are two alternatives:
- write a script that creates the restore request parameter file (see
Is it possible to do an rsync restore from the command line using
BackupPC_restore?
If so, it's not clear from the (limited) documentation how to use
it. For example, how do you specify the desired backup number, share,
paths, etc.
Alternatively, is there an rsync analog of BackupPC_tarCreate?
For all those who have experience with Perl this might be clear, I finally came
up with it: You can't use quotation marks on the command line. After I removed
them from the password, it worked.
-- Originalnachricht --
Von: "Hoeft, Michael" mailto:ho...@ottoheuss.com>>
An:
Now that I have btrfs snapshots set up, I decided to test a full
backup and restore by comparing the snapshot with the backup-restore
via rsync, using the following command:
sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarCreate -h myhost -n -1
-s myshare . | sudo tar --acls --selinux