Hello, I am trying to use the -d 'var=val' command line option of flexbackup. The option appears to work, but it does not seem to do what I expected it would.
Here is the command line: zimtok5# flexbackup -set all -level 7 -d 'idhost=zimtok5' -c /backups/zimtok5/flexbackup.conf My file /backups/zimtok5/flexbackup.conf has lines in it like this: $idhost = "nohost"; $basedir = "/backups/$idhost"; $device = "$basedir/images"; $logdir = "$basedir/log"; $tmpdir = "$basedir/tmp"; $stampdir = "$basedir/state"; $index = "$basedir/log/index"; The "nohost" above is just a placeholder for the real host name, which I would like to pass in on the command line. (So that I can use the same flexbackup.conf file on lots of different hosts.) When I run flexbackup with the above command line this is what I get: flexbackup version 1.2.1 (http://flexbackup.sourceforge.net) /backups/zimtok5/flexbackup.conf syntax OK (override) idhost = zimtok5 Errors: $device must be set to a directory, a local device, or a remote device Can't write to /backups/nohost/images $tmpdir /backups/nohost/tmp is not a directory $tmpdir /backups/nohost/tmp is not writable Can't mkdir /backups/nohost/log: No such file or directory Can't write to /backups/nohost/log Can't mkdir /backups/nohost/state: No such file or directory Can't write to /backups/nohost/state: No such file or directory Can't tie DB /backups/nohost/log/index The (override) seems to work, but the value of 'zimtok5' does not get inserted into the strings where I need it. The 'nohost' value is still there. So, it seems that flexbackup goes through the whole flexbackup.conf file, does its thing, and then checks to see if there are any command line overrides. What I was expecting was that it would use any command line overrides while it was doing its thing with the flexbackup.conf file. The later seems like a more intuitive behavior. Is this a correct interpretation of this problem, or am I doing something wrong? Thanks for any help, Scott -- * Scott Coburn * Brookhaven National Laboratory * [EMAIL PROTECTED] 631.344.7110 * This message brought to you by Debian Linux. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ flexbackup-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/flexbackup-help