Hi,

Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via 
command line?]:
> 
> how can I get a list of backed up files via the command line?
> Currently I use
> 
> /usr/local/BackupPC/bin/BackupPC_tarCreate -h amaretto_fotos -n -1 -s
> Fotos . \
>         | tar tf -
> 
> But this is quite slow. Is there a better/faster way?

indeed. If you're happy with an unfilled view (i.e. you only need to see the
changed files in the backup (or all files in case of a full backup or filled
incremental)), try something like

% cd /var/lib/backuppc/pc/hostname/backupnum
% find . -type f -name f\* -print | perl -I /usr/share/backuppc/lib \
  -MBackupPC::Lib -pe 'BEGIN { $bpc = new BackupPC::Lib; }
                       $_ = $bpc -> fileNameUnmangle ($_);'

(change the two paths to match your setup).
This also does not show file attributes (but you didn't say you wanted
them). For a filled view including attributes it's probably a bit more
complicated. If you need that and can wait a few days, I'd be willing to
hack something together.

Regards,
Holger

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to