On Fri, Dec 9, 2011 at 1:51 AM, Michel <forerunn...@gmail.com> wrote: > I am running a server with Debian Squeeze installed. It runs basic > stuff like Samba, Transmission, Apache2, nfsv4. > > I use the nfs server to mount /raid/home/user on the server to > /home/user on my desktop. I use Backuppc to make a backup every night. > This has run for ages successfully until I tried to restore a backup > of /raid/home/user with Backuppc. After this I got the weirdest errors > from services like Apache2, backuppc, Munin, etc. about permissions > denied, libraries missing etc.
It is never a good idea to overwrite running programs or the shared libraries they are using. Sometimes you can get away with it using rsync because it will write a new file and rename it when complete and the way unix/linux works, anything with the original file open will still see it until the last close. But, it doesn't look like you intended to do that. > So this is a selection of what I am seeing in some logs, most apps > don't even run any more: > /var/log/apache2/error.log: > libgcc_s.so.1 must be installed for pthread_cancel to work > /var/log/squid/cache.log: > 2011/12/08 20:28:36| storeDirClean: /var/spool/squid/08/8C: (13) > Permission denied Why would your restore to /raid/home/user be affecting things under /var? In any case, I'd recommend using rsync over ssh to the server for the backups instead of backing up the nfs-mounted view. > > The Backuppc log says: > > 2011-12-08 20:17:36 User backuppc requested restore to localhost (localhost) > 2011-12-08 20:17:37 Started restore on localhost (pid=11576) > 2011-12-08 19:28:11 localhost: Can't locate Carp/Heavy.pm in @INC > (@INC contains: /usr/share/backuppc/lib /etc/perl > /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 > /usr/local/lib/site_perl .) at /usr/share/perl/5.10/Carp.pm line 39. > Exec of /bin/df /backup failed > 2011-12-08 19:38:18 Got signal TERM... cleaning up > Can't locate Carp/Heavy.pm in @INC (@INC contains: > /usr/share/backuppc/lib /etc/perl /usr/local/lib/perl/5.10.1 > /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 > /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at > /usr/share/perl/5.10/Carp.pm line 39. > root@shuttle:/backup/log# Can't locate Carp/Heavy.pm in @INC (@INC > contains: /usr/share/backuppc/lib /etc/perl /usr/local/lib/perl/5.10.1 > /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 > /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at > /usr/share/perl/5.10/Carp.pm line 39. > > > Does anyone have a clue what is going on here, and possibly a way to > fix my system? > Any help very much appreciated, How have you configured it to back up and restore localhost? If it isn't using the stock commands over ssh, you may have gotten something wrong in the layers of shell quote escaping and the restore command is being interpreted incorrectly. -- Les Mikesell lesmikes...@gmail.com ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/