[BackupPC-users] Variable in Host Configuration File
2009-10-01 12:18:34
I have a host configuration file like this:
$Conf{ClientNameAlias} = 'localhost';
$Conf{XferMethod} = 'rsync';
$Conf{RsyncShareName} = '/home/jeixav';
$Conf{RsyncClientCmd} = 'sudo -u jeixav $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = 'sudo -u jeixav $rsyncPath $argList+';
I would like to specify the user account jeixav once as a variable, rather than
having it "hardcoded" three times, but I'm don't know how to do this. Going
through the BackupPC's config.pl file, it seems as though the variable called
$user should help, but using this variable as shown below doesn't work.
$Conf{ClientNameAlias} = 'localhost';
$Conf{XferMethod} = 'rsync';
$Conf{RsyncShareName} = '/home/$user';
$Conf{RsyncClientCmd} = 'sudo -u $user $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = 'sudo -u $user $rsyncPath $argList+';
I am using BackupPC as packaged with Debian 5.0.3 (lenny).
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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] Variable in Host Configuration File,
Valarie Moore <=
|
|
|