diff options
| author | Patrick J Cherry <patrick@bytemark.co.uk> | 2014-05-12 09:54:37 +0100 | 
|---|---|---|
| committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2014-05-12 09:54:37 +0100 | 
| commit | 2cf52f3a63aae8ad4ca3303e71f6fa1fccc75c54 (patch) | |
| tree | c24dc13e0dd3427ce1c2dd8622f283bce0d50d11 | |
| parent | eac2dadf65c9e94363647e2f42634d7ac956a5a9 (diff) | |
Added timezone to backup directory snapshot name.
| -rwxr-xr-x | byteback-snapshot | 4 | 
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  | 
