#127 Issue closed: USB archive path error

Labels: support / question

baccenfutter opened issue at 2012-07-20 21:25:

I am pasting a bug report from rear-users into here for further analysis. The original author is Cal Sawyer.

I think i've uncovered a small scripting bug in prep/USB/default/06_set_usb_device.sh, which causes archive writes to the outputfs/ path to fail

local.conf, per documentation:

OUTPUT=USB
BACKUP=NETFS
BACKUP_URL=usb:///dev/disk/by-label/REAR-000

In prep/NETFS/default/05_check_NETFS_requirements.sh:

backuparchive is /disk1/tmp/rear.zlwSvhBIsE32725/outputfs/host.fqdn/backup.tar.gz

USB_PREFIX, as defined in 06_set_usb_device.sh:

USB_PREFIX="/rear//$(uname -n)/$(date +%Y%m%d.%H%M)"

Results in 50_make_backup.sh:

opath is /disk1/tmp/rear.zlwSvhBIsE32725/outputfs//rear//host.fqdn/20120716.1515

Consequently, the tar archive step can't write to this non-existent path. Changing USB_PREFIX in 06_set_usb_device.sh to:

USB_PREFIX="$(uname -n)/$(date +%Y%m%d.%H%M)"

makes opath consistent with backuparchive and the tar archive succeeds.

thanks for ReaR!

cal sawyer

baccenfutter commented at 2012-07-20 21:25:

I can acknowledge both, the bug and the fix, on rear-1.13.0

gdha commented at 2012-07-24 12:12:

I've done a complete backup/restore test with above settings with rear-1.13.0-git201207200104 with success. I did not modify any script. Please use the latest snapshot versions to correct above mentioned issue.

dagwieers commented at 2012-07-24 12:48:

I am closing this ticket as there is sufficient proof this issue is no longer valid for the master branch. If the master branch does not fix your issue, please reopen this ticket and provide more details for us to reproduce and fix.

dagwieers commented at 2012-07-25 13:29:

After debugging I cannot reproduce this problem.

dagwieers commented at 2012-07-25 14:18:

Was fixed by commit b56b069a5b29b8df3714c1e41ad51fe3298805d9


[Export of Github issue for rear/rear.]