diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-03-03 10:28:54 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-03-03 10:28:54 -0500 |
commit | da200f06ed865bd9b1dc84e803dad6dad54164f5 (patch) | |
tree | b8353c9611afde247f9e6f59a8d5f059597671af /modules/tick/files/plugins/rclone | |
parent | bf0d278243acbcdcb4f1447541c3248212a02c0d (diff) | |
download | puppet-tozt-da200f06ed865bd9b1dc84e803dad6dad54164f5.tar.gz puppet-tozt-da200f06ed865bd9b1dc84e803dad6dad54164f5.zip |
read the end timestamp from the filesystem
the end timestamp doesn't end up in the backup since it is created after
the backup ends
Diffstat (limited to 'modules/tick/files/plugins/rclone')
-rw-r--r-- | modules/tick/files/plugins/rclone | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tick/files/plugins/rclone b/modules/tick/files/plugins/rclone index 0292512..251e48c 100644 --- a/modules/tick/files/plugins/rclone +++ b/modules/tick/files/plugins/rclone @@ -13,7 +13,7 @@ JSON.load(%x{#{rclone} lsjson #{crypt_repo}}).each do |dir| b2_path = "#{b2_repo}/#{dir["Path"]}" run_start = %x{#{rclone} cat #{crypt_path}/last_run_start} - run_end = %x{#{rclone} cat #{crypt_path}/last_run_end} + run_end = File.ready("/media/persistent/last_run_end") ago_s = now - DateTime.iso8601(run_end).to_time dur_s = DateTime.iso8601(run_end).to_time - DateTime.iso8601(run_start).to_time if dur_s > 0 |