summaryrefslogtreecommitdiff
path: root/byteback-snapshot
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2014-05-12 09:54:37 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2014-05-12 09:54:37 +0100
commit2cf52f3a63aae8ad4ca3303e71f6fa1fccc75c54 (patch)
treec24dc13e0dd3427ce1c2dd8622f283bce0d50d11 /byteback-snapshot
parenteac2dadf65c9e94363647e2f42634d7ac956a5a9 (diff)
Added timezone to backup directory snapshot name.
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 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