From: Edwin H. <ed...@co...> - 2003-02-20 13:36:31
|
[ arakeis wrote: ] > Error: file "export-sambaraid-samba_x.0.200302131322.afio-gz" or > "/export/sambabackup/export-sambaraid-samba_x.0.200302131322.afio-gz" > not found > (like "-list file.tar.bz2") > Died at /usr/bin/flexbackup line 2897. That looks very strange at first glance. First try just listing the archive rather than extract. Also try giving a full path to the archive file, although you shouldn't need to. (Perhaps the backup dir is automounted or something and it has a timing issue?) That error basically only pops out if "(-f <file>)" and "(-f <backupdir>/<file>)" both fail, so it's not a complex test. Stick some printf debugs in the code maybe...? Below is a log from me doing just about the same thing you were trying: - list a level 9 afio backup I just created - make a one-line file with a filename - extract that file using the above filelist Not sure what you have going on... -Edwin (3)goliath[~] flexbackup -list etc.9.afio-bz2 flexbackup version 1.0.2 (http://flexbackup.sourceforge.net) /etc/flexbackup.conf syntax OK |------------------------------------------------------------ | Checking 'buffer' on this machine... Ok | Checking /bin/sh on this machine... bash2 |------------------------------------------------------------ | Logging output to "flexbackup.list.200302200614.log" | Auto-set to type=afio compress=bzip2 | Reading from on-disk file /net/backups/flexbackup/etc.9.afio-bz2 |------------------------------------------------------------ | buffer -m 10m -s 20k -t -p 75 -i "/net/backups/flexbackup/etc.9.afio-bz2" \ | | sudo afio -t -z -D /usr/bin/flexbackup -P bzip2 -Q -d -Z -v -b 20k \ | - |------------------------------------------------------------ -rw-rw-r-- 1 sysmon sysmon 77 Feb 20 06:10:39 2003 //--CONTROL_FILE/flexbackup.volume_header_info Kilobytes Out 20 Volume Label: level 9 /etc Thu Feb 20 06:10:39 2003 afio+bzip2 from goliath -r--r----- 1 root sys 32 Feb 20 06:07:10 2003 cups/certs/0 drwx--x--x 1 lp sys Feb 20 06:07:10 2003 cups/certs -rw-r--r-- 1 root root 628 Feb 20 06:07:54 2003 mail/statistics -rw-r--r-- 1 ntp ntp 8 Feb 20 05:30:22 2003 ntp/drift drwxr-xr-x 1 ntp ntp Feb 20 05:30:22 2003 ntp -rw-r--r-- 1 root root 1629 Feb 20 06:10:38 2003 mtab -rw-r--r-- 1 root root 3073 Feb 20 06:05:51 2003 flexbackup.conf -- compressed drwxr-xr-x 1 root root Feb 20 06:10:38 2003 . afio: 6k+196 bytes read in 0 seconds. The operation was successful. |------------------------------------------------------------ (4)goliath[~] cat > extr.list mail/statistics (5)goliath[~] flexbackup -extract etc.9.afio-bz2 -files extr.list flexbackup version 1.0.2 (http://flexbackup.sourceforge.net) /etc/flexbackup.conf syntax OK |------------------------------------------------------------ | Checking 'buffer' on this machine... Ok | Checking /bin/sh on this machine... bash2 |------------------------------------------------------------ | Logging output to "flexbackup.extract.200302200614.log" | Auto-set to type=afio compress=bzip2 | Reading from on-disk file /net/backups/flexbackup/etc.9.afio-bz2 |------------------------------------------------------------ | Extracting files listed in extr.list | buffer -m 10m -s 20k -t -p 75 -i "/net/backups/flexbackup/etc.9.afio-bz2" \ | | sudo afio -i -w /tmp/extract.24545 -z -x -D /usr/bin/flexbackup -P \ | bzip2 -Q -d -Z -v -b 20k - |------------------------------------------------------------ Kilobytes Out 20 Volume Label: level 9 /etc Thu Feb 20 06:10:39 2003 afio+bzip2 from goliath CONTROL_FILE/flexbackup.volume_header_info -- okay mail/statistics -- okay afio: 6k+196 bytes read in 0 seconds. The operation was successful. |------------------------------------------------------------ |