From da200f06ed865bd9b1dc84e803dad6dad54164f5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 3 Mar 2024 10:28:54 -0500 Subject: 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 --- modules/tick/files/plugins/rclone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf