Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: edb on August 13, 2014, 10:45:36 PM

Title: BackupPC contrib
Post by: edb on August 13, 2014, 10:45:36 PM
Has anyone figured out how to resolve this error when restarting BackupPC
[root@backuppc ~]# service backuppc restart
Shutting down BackupPC:                                    [  OK  ]
Starting BackupPC:                                         [  OK  ]
BackupPC: WARNING:  Your BackupPC $Conf{TopDir} is not listed in the locate
BackupPC: database configuration's PRUNEPATHS.  This may cause all of your
BackupPC: backed up files to be indexed!

Appreciate any input .... is it something I need to worry about or just cosmetic?

-edb
Title: Re: BackupPC contrib
Post by: Daniel B. on August 13, 2014, 10:53:35 PM
That's something I never took time to fixe in the contrib itself. To remove the warning, you should create a custom template /etc/e-smith/templates-custom/etc/updatedb.conf/10conf (copy the default /etc/e-smith/templates/etc/updatedb.conf/10conf) and add the directory /var/lib/BackupPC to the PRUNEPATHS list, then expand-template /etc/updatedb.conf
Title: Re: BackupPC contrib
Post by: edb on August 13, 2014, 11:09:06 PM
Ok I was going to do just that anyway, but you just confirmed it for me.
So thank you very much Daniel I will certainly do that now!
Nice quick answer  :smile:
Title: Re: BackupPC contrib
Post by: edb on August 13, 2014, 11:12:13 PM
Yup ... that did the trick!
Title: Re: BackupPC contrib
Post by: stephdl on August 13, 2014, 11:23:56 PM
Yup ... that did the trick!
could you update the wiki page to record your issue and the solution, thanks
Title: Re: BackupPC contrib
Post by: edb on August 14, 2014, 12:02:42 AM
Ok, it has been updated.
Title: Re: BackupPC contrib
Post by: stephdl on August 14, 2014, 12:56:50 AM
great :)
Title: Re: BackupPC contrib
Post by: edb on August 15, 2014, 10:50:45 PM
One more question for Daniel,

Certain function like "/usr/share/BackupPC/bin/BackupPC_dump -f -v hostname" require you to su to the backuppc user but when you attempt that it gives the error.

Quote
[root@backuppc ~]# /usr/share/BackupPC/bin/BackupPC_dump -f -v hostname
/usr/share/BackupPC/bin/BackupPC_dump: Wrong user: my userid is 0, instead of
4 (backuppc)
Please su backuppc first
BackupPC::Lib->new failed
[root@backuppc ~]# su backuppc
This account is currently not available.
[root@backuppc ~]#

Any idea why that is? This is the same when you try to run a manual nightly cleanup.

Thanks

-edb
Title: Re: BackupPC contrib
Post by: edb on August 16, 2014, 02:28:36 AM
Cancel that last question as I found the answer on the wiki.
Code: [Select]
su -s /bin/bash backuppc