I found out that specifing sleeping a few seconds allows unmounting a USB
drive without problem. Eg. my cmd_postexec looks like "cmd_postexec
/bin/sleep 5 && /bin/umount /dev/sdc1"
I can reproduce the problem and I can confirm that Mike Gabriel's fix fixes
it.
Before the fix, I get this (and I can reproduce this over and over again,
it's been happening every night for weeks now):
david@silverstone:/mnt$ sudo /usr/local/bin/mount_backup_usb.sh && sudo
rsnapshot -v daily
echo
tags 660372 moreinfo
thanks
Hi,
Le samedi 18 février 2012 à 18:53 +0100, Mike Gabriel a écrit :
> Package: rsnapshot
> Version: 1.3.1-1
> Severity: normal
> Tags: squeeze
>
> With rsnapshot from lenny it was able to copy backups to a mounted USB hard
> disk
> and unmount the USB disk after rsna
tags #660372 + patch
thanks
--- /usr/bin/rsnapshot.orig 2012-02-18 18:36:24.0 +0100
+++ /usr/bin/rsnapshot 2012-02-18 18:45:49.0 +0100
@@ -4039,7 +4039,16 @@
print_cmd($cmd);
if (0 == $test) {
+ my $pre_systemcall_cwd = cwd();
+
+ # run $cmd from $HOME, allows unmounting
Package: rsnapshot
Version: 1.3.1-1
Severity: normal
Tags: squeeze
With rsnapshot from lenny it was able to copy backups to a mounted USB hard disk
and unmount the USB disk after rsnapshot had finished. For the unmounting I used
the cmd_postexec configuration parameter.
With rsnapshot from squeez
5 matches
Mail list logo