On 11/3/2023 6:23 AM, Ghislain Adnet wrote:
Evidently "BackupPC_restore" is to be used only through the CGI. Follow the link to documentation from within the CGI and once there look for the title "Command-line restore options" where you will find the recommended commands and a some examples usages.

thanks,

  Well i saw the exemples but they seems to create tar on the backup server then moving the tar then untar it.

  unfortunatly I do not have the disk space for that nor on the backup server nor on the destination server :(

 I would like to do a restore the same way i do it in the web interface to automate this but seems there is not a tool for it.

It's not the cleanest solution, but since BackupPC_tarCreate writes to stdout, you can stream the tar file over the network via ssh and then extract it on the remote machine without ever saving the tar file on either server.

(untested)
BackupPC_tarCreate ... | ssh user@destination 'cat | tar -x -C /destinationdir'

You can do the same thing with BackupPC_zipCreate and use tar -xz to extract on the other side if you want compression other than what is provided by ssh.

You can also pipe the tar/zip data through pv if you want some progress information on the copy.

(also untested)
BackupPC_zipCreate ... | pv | ssh user@destination 'cat | tar -xz -C /destinationdir'

--
Bowie
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to