BackupPC-users

Re: [BackupPC-users] how to compare the active file system to the last backup

2008-07-27 15:54:36
Subject: Re: [BackupPC-users] how to compare the active file system to the last backup
From: Holger Parplies <wbppc AT parplies DOT de>
To: Emilie Ann Phillips <emilie AT alumni.cmu DOT edu>
Date: Sun, 27 Jul 2008 21:53:45 +0200
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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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/