Hi, I am using rsnapshot, together with run-rsnapshot and cron on my laptop. This works perfectly fine as long as I don't decide to shutdown during a backup. Unfortunately, on shutdown, rsnapshot gets terminated/killed, which leaves the backup in an inconsistent state. For example this might look like this:
[21/Jun/2010:00:00:02] /usr/bin/rsnapshot hourly: started [21/Jun/2010:00:00:02] echo 15150 > /var/run/rsnapshot.pid [21/Jun/2010:00:00:02] mv /media/backup/hourly.5/ /media/backup/_delete.15150/ [21/Jun/2010:00:00:02] mv /media/backup/hourly.4/ /media/backup/hourly.5/ [21/Jun/2010:00:00:02] mv /media/backup/hourly.3/ /media/backup/hourly.4/ [21/Jun/2010:00:00:02] mv /media/backup/hourly.2/ /media/backup/hourly.3/ [21/Jun/2010:00:00:02] mv /media/backup/hourly.1/ /media/backup/hourly.2/ [21/Jun/2010:00:00:02] /bin/cp -al /media/backup/hourly.0 /media/backup/hourly.1 [21/Jun/2010:00:12:49] /usr/bin/rsnapshot hourly: ERROR: rsnapshot was sent TERM signal... cleaning up [21/Jun/2010:00:12:50] rm -f /var/run/rsnapshot.pid As you can see, this has two effects: first, the old backup gets not deleted (which is hardly a problem), but more important, the new backup and the previous one are incorrect. Now my question: How can I prevent/delay the shutdown while rsnapshot is running. For your information, I am using gnome, so a solution working only for shutdowns via gnome system menu would be sufficient. Ideally I would like the shutdown continue after rsnapshot is finished. $ uname -a Linux fkmobil 2.6.30-2-686 #1 SMP Fri Dec 4 00:53:20 UTC 2009 i686 GNU/Linux gnome version should be 2.30 $ cat /etc/debian_version squeeze/sid Thanks, Fabian -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1278011472.4633.11.ca...@localhost