From 2cf52f3a63aae8ad4ca3303e71f6fa1fccc75c54 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 12 May 2014 09:54:37 +0100 Subject: Added timezone to backup directory snapshot name. --- byteback-snapshot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/byteback-snapshot b/byteback-snapshot index c59aa18..0e5a362 100755 --- a/byteback-snapshot +++ b/byteback-snapshot @@ -56,7 +56,7 @@ end # Represent a directory full of backups where "current" is a subvolume # which is snapshotted to frozen backup directories called e.g. -# "yyyy-mm-ddThh:mm". +# "yyyy-mm-ddThh:mm+zzzz". # class BackupDirectory attr_reader :dir @@ -144,7 +144,7 @@ class BackupDirectory end def snapshot_path(time=Time.now) - "#{dir.path}/#{time.strftime("%Y-%m-%dT%H:%M")}" + "#{dir.path}/#{time.strftime("%Y-%m-%dT%H:%M%z")}" end protected -- cgit v1.2.1