Package: backuppc Version: 3.1.0-4lenny1 Severity: normal
I've started using BackupPC on my boxes recently. I like it so far, but I'd like to burn DVDs with backups, so I can restore the most important stuff in case the pool becomes corrupted or the disk crashes, for instance. So I've written a script that remotely runs BackupPC_tarCreate on the backup server from my home PC and gets the results back, then I'll burn the tarballs to DVD. My problem is that I'd like to only fetch (and burn) a part of the data, not a full share. So I tried to filter the tar streams in order to remove the components I don't want to fetch with tar --delete, but apparently these streams make tar unhappy. Here's the output I get: backu...@monbomiroir:~$ /usr/bin/perl /usr/share/backuppc/bin/BackupPC_tarCreate -h libremir.placard.fr.eu.org -n -1 -s /vlib/gforge . | tar --delete -f - --wildcards ./chroot/home/groups/fusionforge/* > /dev/null tar: Deleting non-header from archive tar: Deleting non-header from archive tar: Deleting non-header from archive tar: Deleting non-header from archive tar: Deleting non-header from archive [...] tar: Deleting non-header from archive tar: Error exit delayed from previous errors backu...@monbomiroir:~$ Ignoring these errors doesn't help, as the resulting tar file is still invalid: backu...@monbomiroir:~$ /usr/bin/perl /usr/share/backuppc/bin/BackupPC_tarCreate -h libremir.placard.fr.eu.org -n -1 -s /var/lib/gforge . | tar --delete -f - --wildcards ./chroot/home/groups/fusionforge/* 2>/dev/null | tar tf - ./ ./chroot/ ./db/ ./download/ ./dumps/ ./etc/ [...] ./chroot/usr/bin/ ./chroot/usr/lib/ ./chroot/usr/sbin/ ./chroot/usr/bin/svnserve tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now backu...@monbomiroir:~$ It seems to me that BackupPC_tarCreate implements its own tar generating methods. I suggest using an external module for that, such as Archive::Tar or Archive::Tar::Streamed (which doesn't store the whole stream in memory). Alternately, an option to specify which files to include/exclude in the output of BackupPC_tarCreate would be good enough for me :-) -- System Information: Debian Release: 5.0.3 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-vserver-686 (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages backuppc depends on: ii adduser 3.110 add and remove users and groups ii apache2 2.2.9-10+lenny4 Apache HTTP Server metapackage ii apache2-mpm-worker [http 2.2.9-10+lenny4 Apache HTTP Server - high speed th ii bzip2 1.0.5-1 high-quality block-sorting file co ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy ii dpkg 1.14.25 Debian package management system ii libarchive-zip-perl 1.18-1 Module for manipulation of ZIP arc ii libcompress-zlib-perl 2.012-1 Perl module for creation and manip ii perl [libdigest-md5-perl 5.10.0-19lenny2 Larry Wall's Practical Extraction ii perl-suid 5.10.0-19lenny2 Runs setuid Perl scripts ii samba-common 2:3.2.5-4lenny7 Samba common files used by both th ii smbclient 2:3.2.5-4lenny7 a LanManager-like simple client fo ii tar 1.20-1 GNU version of the tar archiving u Versions of packages backuppc recommends: ii exim4 4.69-9 metapackage to ease Exim MTA (v4) ii exim4-daemon-light [mail-tra 4.69-9 lightweight Exim MTA (v4) daemon ii libfile-rsyncp-perl 0.68-1.1+b1 A perl based implementation of an ii openssh-client [ssh-client] 1:5.1p1-5 secure shell client, an rlogin/rsh ii rrdtool 1.3.1-4 Time-series data storage and displ ii rsync 3.0.3-2 fast remote file copy program (lik Versions of packages backuppc suggests: pn par2 <none> (no description available) pn w3m | www-browser <none> (no description available) -- debconf information: * backuppc/reconfigure-webserver: apache2 * backuppc/configuration-note: * backuppc/restart-webserver: true -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org