BackupPC-users

[BackupPC-users] Variables in $Conf{DumpPreUserCmd} and $Conf{DumpPostUserCmd}

2009-06-30 13:34:02
Subject: [BackupPC-users] Variables in $Conf{DumpPreUserCmd} and $Conf{DumpPostUserCmd}
From: Mirco Piccin <pictux AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 30 Jun 2009 19:30:02 +0200
Hi all.
to handle a specific set of files, i've done a set of shell scripts
that  i'd like to run using $Conf{DumpPreUserCmd} and
$Conf{DumpPostUserCmd}.
I read that at run time are made the following variable substitutions:

           $type         type of dump (incr or full)
           $xferOK       1 if the dump succeeded, 0 if it didn't
           $client       client name being backed up
           $host         host name (could be different from client name if
                                    $Conf{ClientNameAlias} is set)
           $hostIP       IP address of host
           $user         user name from the hosts file
           $moreUsers    list of additional users from the hosts file
           $share        the first share name (or current share for
                           $Conf{DumpPreShareCmd} and $Conf{DumpPostShareCmd})
           $shares       list of all the share names
           $XferMethod   value of $Conf{XferMethod} (eg: tar, rsync, smb)
           $sshPath      value of $Conf{SshPath},
           $cmdType      set to DumpPreUserCmd or DumpPostUserCmd

Is there a way to retrieve at run time also other informations, to
pass as args to pass to my scripts?
I mean (for now :-D):
- user & password (for smb XferMethod, defined in main config.pl or in
host.pl),
- values listed in $Conf{BackupFilesOnly}

Thanks!
Regards
M

------------------------------------------------------------------------------
_______________________________________________
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>
  • [BackupPC-users] Variables in $Conf{DumpPreUserCmd} and $Conf{DumpPostUserCmd}, Mirco Piccin <=