On Sat, Feb 18, 2012 at 9:17 AM, Dan Johansson <dan.johans...@dmj.nu> wrote:

> I am looking for a way to do an automatic redirected restore.
> At the moment I am playing with an Archive Host and are doing the
> following:
>
> 1)      run BackupPC_archiveStart with ArchiveDest set to a local
> directory (at
> the moment /(var/tmp).
>
> 2)      When the archive process is finished I create a subdirectory in
> /var/tmp
> and extract the tar-file from step one into this subdirectory.
>
> This approach works but uses a lot of disk space (almost two times) as the
> tar-file from step one must exist together with the extracted data for some
> time (at least until the "tar xvzf" is finished and I can delete the tar
> file). Is there/do you know of any way to "skip" the use of a tar file and
> directly "export/restore" the backup to a "redirected" location.
> With redirected I mean it does not get restored to the original host and or
> location.
>

Use the BackupPC_tarCreate command line program and pipe it directly to a
'tar -xf -' to extract instead of saving the output in a file.  Insert ssh
in the pipeline appropriately if you want the restore to happen elsewhere.

-- 
   Les Mikesell
      lesmikes...@gmail.com
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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/

Reply via email to