Include snapshot intent value in the backup descriptor.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Jan 2008 04:19:14 +0000 (20:19 -0800)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Thu, 17 Jan 2008 18:19:03 +0000 (10:19 -0800)
It wasn't included earlier, but could be useful to have when actually going
back to clean out old snapshots at a later point in time.

scandir.cc

index 7a7ba46..65151bc 100644 (file)
@@ -790,6 +790,7 @@ int main(int argc, char *argv[])
     fprintf(descriptor, "Date: %s\n", desc_buf);
     if (backup_scheme.size() > 0)
         fprintf(descriptor, "Scheme: %s\n", backup_scheme.c_str());
+    fprintf(descriptor, "Backup-Intent: %g\n", snapshot_intent);
     fprintf(descriptor, "Root: %s\n", backup_root.c_str());
 
     SHA1Checksum checksum_csum;