BackupPC Problem

Home » CentOS » BackupPC Problem
CentOS 3 Comments

I’ve installed BackupPC from the EPEL repository. It does backups just fine, BUT, when the backups are done, the status on the web page says there are no backups for any of my systems I’m backing up.

To be sure, they are taking up disk space, but it’s just not reporting it correctly to the admin web interface.

I’m thinking I’m missing some package I need, but am not sure exactly what.

Any ideas?

Thanks.

– Derrik

3 thoughts on - BackupPC Problem

  • The web interface doesn’t have access to the BackupPC archive directory. Probably either selinux or you don’t have the perl-suidperl package installed.

  • I figured it out.

    Initially I was thinking that I was missing a package, but it turned out to be selinux. I actually figured that out right after I sent the email by doing an setenforce 0, and it started working.

    So I installed setroubleshoot and figured out the problem is that I
    moved the backup data directory from /var/lib/BackupPC to it’s own filesystem mounted on /data/backup, and since I did that, I had too:

    setsebool -P httpd_read_user_content 1

    Which solved my problem. I guess it was seeing the archive files as
    ‘user_content’ for some reason. In anycase, it works now, and enforcing is back on.

    Thanks.

    – Derrik

  • The better solution would have been to label the data the same as it would be in BackupPC.

    # semanage fcontext -a -e /var/lib/BackupPC /data/backup
    # restorcon -R -v /data/backup