From: Holger P. <wb...@pa...> - 2008-07-27 19:54:21
|
Hi, Emilie Ann Phillips wrote on 2008-07-27 13:34:13 -0400 [[BackupPC-users] how to compare the active file system to the last backup]: > My system just crashed rather nastily and I would like to verify that > fsck recovered everything properly. > > Is there a way to diff the mounted file system vs the latest backup > without restoring the backup to a temporary location and doing the > diff by hand? I'd try tar's d option. Presuming your host is named 'host', you're concerned about the '/share' share, and it's mounted on your BackupPC server as '/mnt/share', try something like % sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarCreate -h host -n -1 -s /share . | tar -C /mnt/share -df - . You might need to use another method to become the backuppc user, your BackupPC_tarCreate might be somewhere else (I think the default is /usr/local/BackupPC/bin/BackupPC_tarCreate), and you might need root permission for the tar to be able to read everything it is supposed to compare. You might want to modify a file just to check that it is correctly reported. Good luck, and please ask if you need more information. Regards, Holger |