Re: [BackupPC-users] Automatic redirected restore
2012-02-18 11:55:02
On Saturday 18 February 2012 10.18:31 Les Mikesell wrote:
> 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.
Great - that was what I was looking for. Now I have another (related) problem.
With BackupPC_archiveStart I get all shares for the host, with
BackupPC_tarCreate I have to explicitly name all shares. This puts me in the
situation that I have to dynamically figure out all shares for each host. Are
there command that does this for me? If not, then I have to write a small
perl-script to read the host-config-file.
Regards,
--
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
------------------------------------------------------------------------------
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/
|
|
|