On Tue, Nov 19, 2024 at 03:43:15PM +0000, G.W. Haywood wrote:
> Hi there,
> 
> On Tue, 19 Nov 2024, tomas wrote:
> 
> > I have two questions about BackupPC_tarCreate.
> > 
> >  (a) does the output go to stdout (I guess "yes")?
> 
> Yes.  Redirect the output to a file if that's where you want it.
> 
> Here's the command I used to create a test file just now:
> 
> /usr/local/BackupPC/bin/BackupPC_tarCreate -n 1724 -h alpha -s 'Config' 
> 'apache2' > /tmp/bpc.tar

Thanks :-)

> The directory 'apache2' is in the 'Config' share (which happens to be
> mapped to the directory '/etc' on that machine by rsyncd).
> 
> >  (b) what do I put into the mandatory option "-s" (aka "share")?
> 
> The names of the shares which you have configured in either or both of
> 
> /etc/BackupPC/config.pl
> /etc/BackupPC/pc/[hostname].pl
> 
> Here's some of the output of grepping for the share names in my config
> here, after a little redaction:
> 
> 8<----------------------------------------------------------------------
> $ grep '^$Conf.*Share' /etc/BackupPC/config.pl /etc/BackupPC/pc/*.pl
> config.pl:$Conf{SmbShareName} = 'C$';
> config.pl:$Conf{SmbShareUserName} = '';
> config.pl:$Conf{SmbSharePasswd} = '';
> config.pl:$Conf{TarShareName} = '/';
> config.pl:$Conf{RsyncShareName} = '/';
> config.pl:$Conf{FtpShareName} = '';
> config.pl:$Conf{DumpPreShareCmd}    = undef;
> config.pl:$Conf{DumpPostShareCmd}   = undef;
> pc/alpha.pl:$Conf{RsyncShareName} = [ 'Config', 'Homes', ];
> pc/farm03.pl:$Conf{RsyncShareName} = ['Config','Homes','Plugins'];
> pc/tornado.pl:$Conf{RsyncShareName} = ['Config','user1','Shared'];
> pc/ns9.pl:$Conf{RsyncShareName} = ['Config','Homes','Named'];

Thanks, I'll have a look on my side (using '*' currently, possibly
that's the right thing for me anyway).

[...]

> In addition to the name of the share you need to specify what you want
> to recover from that share.  The help output of BackupPC_tarCreate
> unfortunately omits to mention that a 'files/directories' argument is,
> like the host name, backup number and share name, also mandatory.

I found out by trial and error, thanks for confirming!

> Do not use a bare '*' on the command, line because the shell will
> expand it to something which you probably won't like very much.  If
> you _must_ use an asterisk, quote it to prevent shell expansion.

And that is the most embarrasing part. I guess I got what
I deserved :-)

Thanks again for your detailed answer!

Cheers
-- 
tomás

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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