I found an interesting problem today when backing up machines use the
'tar' method and having GNU tar version 1.12 or older installed on the
remote machines.
My config file looked like this:
$Conf{XferMethod} = 'tar';
$Conf{TarClientPath} = 'env PATH=/usr/local/bin:/usr/bin:/bin tar';
$Conf{BackupFilesExclude} = [
'/proc',
'/tmp',
'/home',
'/build'
];
I backup of very diverse build cluster or many different
architectures. Most are backup up with rsync, but some or too old or
too strange for rsync to build correctly, so I revert to tar.
I found that BackupPC reverts the BackupFilesExclude config to the
following options on the command line:
tar -cvf - -C / --exclude './proc' --exclude './tmp' .
But tar doesn't put a './' at the start of the pathnames to backup.
With GNU tar version 1.13 this command line seems to work correctly,
but with older versons the excludes don't match anything.
Hmm. I just noticed the documentation:
You must have GNU tar on the client machine. Use ``tar --version'' or
``gtar --version'' to verify. The version should be at least 1.13.7,
and 1.13.20 or greater is recommended. Tar is run on the client
machine via rsh or ssh.
Any chance that could be autodectected? Maybe run a
'ssh -l root $host $tar --version' before running the actual backup?
Is there are header in the tar file? (maybe with the gnu format)
I will go ahead and send this email just incase it help someone when
searching the archives.
Also does rsync send the version number in its protocol?
-Wayne
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/
