BackupPC-users

Re: [BackupPC-users] Automatic redirected restore

2012-02-18 11:19:55
Subject: Re: [BackupPC-users] Automatic redirected restore
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sat, 18 Feb 2012 10:18:31 -0600
On Sat, Feb 18, 2012 at 9:17 AM, Dan Johansson <Dan.Johansson AT dmj DOT 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
      lesmikesell AT gmail DOT 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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>