pvl.backup-snapshot: do not clean out tmp snapshot..? Fixup special-case name
authorTero Marttila <terom@paivola.fi>
Tue, 19 Jun 2012 10:35:15 +0300
changeset 63 4293baf688b1
parent 62 86ba7b12a7c9
child 64 0de61433a42f
pvl.backup-snapshot: do not clean out tmp snapshot..? Fixup special-case name
bin/pvl.backup-snapshot
--- a/bin/pvl.backup-snapshot	Tue Jun 19 10:26:15 2012 +0300
+++ b/bin/pvl.backup-snapshot	Tue Jun 19 10:35:15 2012 +0300
@@ -412,8 +412,6 @@
     def snapshot (self, options, now) :
         """
             Perform the rsync from our source to self.snapshot_dir.
-
-            XXX: allocate snapshot_name here?
         """
        
         # new snapshot
@@ -583,8 +581,8 @@
         # discover all snapshots
         snapshots = set(os.listdir(snapshots_path))
 
-        # clean out special names
-        snapshots = snapshots - set(['new'])
+        # XXX: and ignore special names?
+        snapshots = snapshots - set(['tmp'])
 
         ## compare
         used = snapshots & found