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 lib/BackupPC/CGI/Restore.pm) and then runs BackupPC_restore - directly run rsync_bpc using an example of the many arguments from a successful restore log file The drawback of the 2nd approach is that information about the restore isn't saved or logged, and you have to make sure it doesn't run concurrently with a backup. Craig On Wed, May 20, 2020 at 6:31 AM <backu...@kosowsky.org> wrote: > > 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? > > Said another way, rather than first creating a tar file via > BackupPC_tarCreate and then untarring (or piping through tar), is > there a way to hook directly into rsync to restore from the command line? > > This would have several advantages: > 1. It would automatically incorporate the ssh and compression features > to restore seamlessly, efficiently, and securely across platforms > > 2. It would allow for restoring special file types that tar doesn't > support > > 3. It would be able to better and more exactly mirror the parameters > given to Rsync dump (for example the same format of 'includes' and > 'excludes' > > > _______________________________________________ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ >
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/