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

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'];
...
...
8<----------------------------------------------------------------------

Note that I'm not using SMB or FTP transfers anywhere in my setup.

If all else fails try '*' for the share name until you figure it out.

...
For (a) I could just try, but (b) doesn't let me. If I just put
"*", I get an error:

  backuppc@proxmox-backup:/tmp$ /usr/share/backuppc/bin/BackupPC_tarCreate -h 
my.host.name -n -1 -s *

errors out ...

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.

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.

--

73,
Ged.


_______________________________________________
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