SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
"do" directive in main config file (conf/config.pl
Author Message
Post "do" directive in main config file (conf/config.pl 
Hello,

I would like to store the samba password in a different file than
config.pl ( $Conf{SmbSharePasswd}).

After readed documentation, I found nice explanations about the "do"
directive in configuration files.

So I changed my conf/config.pl file to look like this :

#----------------<cut_here>-------------------------------
# [....]
# This setting only matters if $Conf{XferMethod} = 'smb'.
#
#$Conf{SmbSharePasswd} = 'my_pass';
do "passwd_smb.pl";
# [....]
#----------------<cut_here>-------------------------------

filled the conf/passwd_smb.pl like this:

#----------------<cut_here>-------------------------------
# This setting only matters if $Conf{XferMethod} = 'smb'.
#
$Conf{SmbSharePasswd} = 'my_pass';
#----------------<cut_here>------------------------------

then make the backupPC daemon re-read the configuration file.

Unfortunatly, this configuration does not work with backupPC-2.0.0beta0
: the backupPC system is no more abble to backup or restore by the use
of samba.

So I checked and re-check documentation, my configuration, etc. I tried
to start then restart backupPC daemon or do a touch of conf/config.pl
file without better result.

Does someone already use the "do" directive succefully in its
configuration file(s) ?

Does this "do" directive in the MAIN configuration file (conf/config.pl) ?

Regards,

Pierre Bourgin



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post "do" directive in main config file (conf/config.pl 
After readed documentation, I found nice explanations about the "do"
directive in configuration files.

So I changed my conf/config.pl file to look like this :

#----------------<cut_here>-------------------------------
# [....]
# This setting only matters if $Conf{XferMethod} = 'smb'.
#
#$Conf{SmbSharePasswd} = 'my_pass';
do "passwd_smb.pl";
# [....]
#----------------<cut_here>-------------------------------

You need to use a full path with do. The description in the BackupPC
man page isn't correct - I will fix this. Try this instead:

do "/data/BackupPC/conf/passwd_smb.pl";

or whereever your top-level directory is.

Craig

Post "do" directive in main config file (conf/config.pl 
cbarratt < at > users.sourceforge.net a =E9crit:
After readed documentation, I found nice explanations about the "do"=20
directive in configuration files.

So I changed my conf/config.pl file to look like this :

#----------------<cut_here>-------------------------------
# [....]
# This setting only matters if $Conf{XferMethod} =3D 'smb'.
#
#$Conf{SmbSharePasswd} =3D 'my_pass';
do "passwd_smb.pl";
# [....]
#----------------<cut_here>-------------------------------
=20
=20
You need to use a full path with do. The description in the BackupPC
man page isn't correct - I will fix this. Try this instead:
=20
do "/data/BackupPC/conf/passwd_smb.pl";
=20
or whereever your top-level directory is.

Hello,

of course it's working, thanks for this information.

.. I'm confused to forget to try it (full path) before asking for help Sad

Regards,

Pierre Bourgin




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB