summaryrefslogtreecommitdiff
path: root/byteback-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'byteback-snapshot')
-rwxr-xr-xbyteback-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/byteback-snapshot b/byteback-snapshot
index a14e0f8..0f0c9e9 100755
--- a/byteback-snapshot
+++ b/byteback-snapshot
@@ -27,10 +27,10 @@ fatal("--root not readable") unless File.directory?("#{@root}")
@backups = BackupDirectory.new(@root)
-last_snapshot_time = @backups.snapshot_times.last
+last_snapshot_time = @backups.snapshots.last.time
fatal("Last snapshot was less than six hours ago") unless
!last_snapshot_time ||
- Time.now - @backups.snapshot_times.last >= 6*60*60 # FIXME: make configurable
+ Time.now - last_snapshot_time >= 6*60*60 # FIXME: make configurable
info "Making new snapshot"
@backups.new_snapshot!