From: Scott C. <sc...@bn...> - 2004-07-28 14:17:27
|
Hello, I am trying to use the -d 'var=3Dval' 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=3Dzimtok5' -c /backups/zim= tok5/flexbackup.conf My file /backups/zimtok5/flexbackup.conf has lines in it like this: $idhost =3D "nohost"; $basedir =3D "/backups/$idhost"; $device =3D "$basedir/images"; $logdir =3D "$basedir/log"; $tmpdir =3D "$basedir/tmp"; $stampdir =3D "$basedir/state"; $index =3D "$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 =3D zimtok5 Errors: =A0$device must be set to a directory, a local device, or a remote device =A0Can't write to /backups/nohost/images =A0$tmpdir /backups/nohost/tmp is not a directory =A0$tmpdir /backups/nohost/tmp is not writable =A0Can't mkdir /backups/nohost/log: No such file or directory =A0Can't write to /backups/nohost/log =A0Can't mkdir /backups/nohost/state: No such file or directory =A0Can't write to /backups/nohost/state: No such file or directory =A0Can't tie DB /backups/nohost/log/index The (override) seems to work, but the value of 'zimtok5' does not get inser= ted 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 overri= des. 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 =2D-=20 * Scott Coburn * Brookhaven National Laboratory * sc...@bn... 631.344.7110 * This message brought to you by Debian Linux. |