[rear-users] USB archive path error

Gratien D'haese gratien.dhaese at it3.be
Thu Jul 19 11:49:12 CEST 2012



I'll investigate this beginning of next week (still enjoying a few free
days). 

On Tue, 17 Jul 2012 18:18:04 +0100, Cal Sawyer  wrote:  Hello,
Gratien

 Have Just installed the latest rev from git. USB_PREFIX in
06_set_usb_device.sh is still (mis)defined with "rear/" prepended to the
path

 > rear -V

 Relax-and-Recover 1.13.0-git201207161602 / 2012-07-16


regards,

 - cal

 On 17/07/12 09:41, Gratien D'haese wrote:  

I assume
you were using rear-1.12.0? If so, then indeed you're right. We discovered
this problem too at the LinuxTag workshop (last May). Try using the latest
version from github (see http://relax-and-recover.org/download/ [1] )


best regards,
 Gratien 

On Mon, 16 Jul 2012 16:07:19 +0100, Cal Sawyer 
[2] wrote: 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

-- 
Gratien
D'haese
IT3 Consultants bvba 
Vennestraat 15, B-2560
Nijlen

_______________________________________________
rear-users mailing
list
rear-users at lists.relax-and-recover.org
[3]
http://pikachu.3ti.be/mailman/listinfo/rear-users [4]

-- 
Cal Sawyer |
Systems Engineer
BlueBolt Ltd | 15-16 Margaret Street | London W1W 8RW | T:
+44 (0)20 7637 5575 | F: +44 (0)20 7637 3296 | www.blue-bolt.com [5] |

--

Gratien D'haese
IT3 Consultants bvba 
Vennestraat 15, B-2560 Nijlen



Links:
------
[1] http://relax-and-recover.org/download/
[2]
mailto:cal-s at blue-bolt.com
[3]
mailto:rear-users at lists.relax-and-recover.org
[4]
http://pikachu.3ti.be/mailman/listinfo/rear-users
[5]
http://www.blue-bolt.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pikachu.3ti.be/pipermail/rear-users/attachments/20120719/abe75434/attachment.html 


More information about the rear-users mailing list