[rear-users] USB archive path error

Cal Sawyer cal-s at blue-bolt.com
Mon Jul 16 17:07:19 CEST 2012


Hello, Rear-devs

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pikachu.3ti.be/pipermail/rear-users/attachments/20120716/4111ed9a/attachment.html 


More information about the rear-users mailing list