Package: rsnapshot
Version: 1.4.2-1
Severity: important
Tags: patch

--- Please enter the report below this line. ---
When rotating higher intervals pre/post execute scripts not called
which will always result in a noop producing output like below:
/home/mir/qnap_backup/alpha.5 not present (yet), nothing to copy
/home/mir/qnap_backup/beta.6 not present (yet), nothing to copy

A patch is attached which fixes the bug.

--- System information. ---
Architecture: 
Kernel:       Linux 4.11.0-2-amd64

Debian Release: buster/sid
  900 unstable        ftp.dk.debian.org 
  500 stable          dl.google.com 
  500 stable          deb.opera.com 
  500 sid             linux.dropbox.com 

--- Package information. ---
Depends             (Version) | Installed
=============================-+-===========
perl                          | 5.24.1-7
rsync                         | 3.1.2-2
logrotate                     | 3.11.0-0.1
liblchown-perl                | 1.01-3+b2


Recommends          (Version) | Installed
=============================-+-===========
openssh-client                | 1:7.5p1-5
 OR ssh-client                | 


Package's Suggests field is empty.


-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
Although golf was originally restricted to wealthy, overweight
Protestants, today it's open to anybody who owns hideous clothing.
                -- Dave Barry
--- /usr/bin/rsnapshot	2017-07-22 00:25:05.561962362 +0200
+++ /tmp/rsnapshot.new	2017-07-22 00:23:59.061962417 +0200
@@ -3199,7 +3199,9 @@
 	else {
 
 		# this is not the most frequent unit, just rotate
+		exec_cmd_preexec();
 		rotate_higher_interval($id_ref);
+		exec_cmd_postexec();
 	}
 
 	# if use_lazy_delete is on, delete the _delete.$$ directory

Attachment: pgphR8ICz7sUh.pgp
Description: OpenPGP digital signature

Reply via email to