From: MH A. <mh_...@ya...> - 2012-04-26 10:21:18
|
Hi, I set up BackupPC on an old Linux box I had (with a clean OS install) and got it backing up itself fine. I then added my laptop to the pool and it seemed to back that up ok, but when I checked the backup I found that it had actually backed the local backup server again, instead of the remote laptop. I have a reference to the LT "laptopbig" in the server's /etc/hosts file, with the LT's static IP address and I can ping it and ssh onto it using ssh user@laptopbig fine. I set up ssh keys for the backuppc user and the command su -s /bin/sh -c "ssh root@laptopbig ls -l /home/user/r*" backuppc successfully lists all the files in my home directory on my LT that begin with r, so the remote connection is working ok, also if I replace the ls command with touch /home/user/rootest.txt it creates a file in there with an owner of root, so it's going in as the correct user. I set up the file manually, which could have been my downfall, copying it from the localhost.pl and calling it laptopbig.pl:- # # Local server backup of /etc as user backuppc # $Conf{XferMethod} = 'rsync'; $Conf{TarShareName} = ['/etc']; $Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+'; $Conf{RsyncClientRestoreCmd} = '/usr/bin/sudo $rsyncPath $argList+'; $Conf{RsyncShareName} = ['/']; $Conf{BackupFilesExclude} = ['lost+found','/var/run/*','/var/tmp/*','/var/lock/* ','/dev','/proc','/sys/*','/media/*','/tmp/*','/data/Complete/*']; # remove extra shell escapes ($fileList+ etc.) that are # needed for remote backups but may break local ones but I can't see anything immediately obvious in there that would specify the local host as the target - the only references to it seem to be in the comments I also added an entry into the BackupPC's hosts file:- laptopbig 0 backuppc any ideas regarding what I did wrong? Thanks, MH |