]> wagner.pp.ru Git - oss/restore.git/commitdiff
Fix stamp file opening mode
authorVictor Wagner <vitus@wagner.pp.ru>
Fri, 7 Apr 2023 10:26:46 +0000 (13:26 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Fri, 7 Apr 2023 10:26:46 +0000 (13:26 +0300)
backup

diff --git a/backup b/backup
index 96467fe8b0086d1c6876d187cf94ce7d354ac4d0..a6d01376f60205d6e2ec9279e59c940965a68272 100755 (executable)
--- a/backup
+++ b/backup
@@ -82,7 +82,7 @@ while (@levels) {
        }
     run_rsnapshot($nextlevel);
        # touch stamp file
-       open my $stamp, ">+","$snapshot_root/${nextlevel}-stamp";
+       open my $stamp, ">>","$snapshot_root/${nextlevel}-stamp";
        close $stamp;
 }
 run_rsnapshot($level);