summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/fs_abilities.py
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-01-03 23:18:35 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-01-03 23:18:35 +0000
commit247258bb5cd325c311188dd65b3f351e64bc5454 (patch)
tree4dfb10c0835303245482954eaa9abefe7b54b495 /rdiff-backup/rdiff_backup/fs_abilities.py
parenta0d43616f7f51127bed7a8dd3866fa6d22b8c8b5 (diff)
downloadrdiff-backup-247258bb5cd325c311188dd65b3f351e64bc5454.tar.gz
New option: --use-compatible-timestamps, which causes rdiff-backup to use - asthe hour/minute/second separator instead of :. Enabled by default on systems
which require : to be escaped. (Oliver Mulatz) git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@996 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/fs_abilities.py')
-rw-r--r--rdiff-backup/rdiff_backup/fs_abilities.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py
index 10cbb27..dec2822 100644
--- a/rdiff-backup/rdiff_backup/fs_abilities.py
+++ b/rdiff-backup/rdiff_backup/fs_abilities.py
@@ -708,6 +708,12 @@ class SetGlobals:
def set_symlink_perms(self):
SetConnections.UpdateGlobal('symlink_perms',
self.dest_fsa.symlink_perms)
+
+ def set_compatible_timestamps(self):
+ if Globals.chars_to_quote.find(":") > -1:
+ SetConnections.UpdateGlobal('use_compatible_timestamps', 1)
+ log.Log("Enabled use_compatible_timestamps", 4)
+
class BackupSetGlobals(SetGlobals):
"""Functions for setting fsa related globals for backup session"""
@@ -963,6 +969,7 @@ def backup_set_globals(rpin, force):
bsg.set_symlink_perms()
update_quoting = bsg.set_chars_to_quote(Globals.rbdir, force)
bsg.set_special_escapes(Globals.rbdir)
+ bsg.set_compatible_timestamps()
if update_quoting and force:
FilenameMapping.update_quoting(Globals.rbdir)
@@ -990,6 +997,7 @@ def restore_set_globals(rpout):
rsg.set_symlink_perms()
rsg.set_chars_to_quote(Globals.rbdir)
rsg.set_special_escapes(Globals.rbdir)
+ rsg.set_compatible_timestamps()
def single_set_globals(rp, read_only = None):
"""Set fsa related globals for operation on single filesystem"""
@@ -1010,4 +1018,5 @@ def single_set_globals(rp, read_only = None):
ssg.set_symlink_perms()
ssg.set_chars_to_quote(Globals.rbdir)
ssg.set_special_escapes(Globals.rbdir)
+ ssg.set_compatible_timestamps()