Koozali.org: home of the SME Server

BackupPC contrib

Offline edb

  • *
  • 546
  • +0/-0
BackupPC contrib
« 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
......

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: BackupPC contrib
« Reply #1 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
C'est la fin du monde !!! :lol:

Offline edb

  • *
  • 546
  • +0/-0
Re: BackupPC contrib
« Reply #2 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:
......

Offline edb

  • *
  • 546
  • +0/-0
Re: BackupPC contrib
« Reply #3 on: August 13, 2014, 11:12:13 PM »
Yup ... that did the trick!
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: BackupPC contrib
« Reply #4 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline edb

  • *
  • 546
  • +0/-0
Re: BackupPC contrib
« Reply #5 on: August 14, 2014, 12:02:42 AM »
Ok, it has been updated.
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: BackupPC contrib
« Reply #6 on: August 14, 2014, 12:56:50 AM »
great :)
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline edb

  • *
  • 546
  • +0/-0
Re: BackupPC contrib
« Reply #7 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
......

Offline edb

  • *
  • 546
  • +0/-0
Re: BackupPC contrib
« Reply #8 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
......