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
|
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|