BackupPC-users

Re: [BackupPC-users] Quick BackupPC_tarCreate question

2009-08-25 08:02:00
Subject: Re: [BackupPC-users] Quick BackupPC_tarCreate question
From: Holger Parplies <wbppc AT parplies DOT de>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 25 Aug 2009 13:57:49 +0200
Hi,

Adam Goryachev wrote on 2009-08-24 21:51:49 +1000 [Re: [BackupPC-users] Quick 
BackupPC_tarCreate question]:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Tino Schwarze wrote:
> > On Sun, Aug 23, 2009 at 11:42:00PM -0400, Mr_T wrote:
> >> Hi,
> >>
> >> I'm wanting to restore a file via the command line to the machine that
> is running backuppc.
> >>
> >> The command I'm using is...
> >>
> >> ./BackupPC_tarCreate -t -n 55 -h server1 -s '/etc/mail.rc' >
> /data/test.tar
> >>
> >> However when I run the above I just get given the following output...
> >>
> >> usage: ./BackupPC_tarCreate [options] files/directories...
> Just a hint, you might like to try Backuppc_zcat <filename> where
> filename is the file from your TOPDIR/pc/host/nnn/fetc/fblah

another hint (because BackupPC_tarCreate is really the better option, as it
restores file attributes as well, handles multiple files with just one
invocation, and gets file names right without having to copy and demangle them
by hand): read the error message. The "files/directories ..." parameter is not
optional. You need to specify at least one file or directory to put in the tar
file. If you want everything, just use "/". Eg.

        ./BackupPC_tarCreate -n 55 -h server1 -s /etc /mail.rc > /data/test.tar

(presuming your share name is really "/etc"), or

        ./BackupPC_tarCreate -n 55 -h server1 -s / /etc/mail.rc > /data/test.tar

(if your share is "/"), or even

        ./BackupPC_tarCreate -n 55 -h server1 -s / /etc/mail.rc /var/log/mail 
/etc/init.d > /data/test.tar

for the sake of having an example with multiple files and directories.

Obviously, you need to use a share for the -s argument that you have actually
configured BackupPC to back up.

Note that the leading "/" in your files and directories is optional
("/etc/mail.rc" and "etc/mail.rc" are equivalent, but "./etc/mail.rc" won't
work). This is also true for the first example: use "-s /etc /mail.rc" or
"-s /etc mail.rc". Inside the resulting tar file, file names will have a "./"
prepended, i.e. they will be named "./etc/mail.rc" or "./mail.rc" respectively.

Regards,
Holger

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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>