=== modified file 'bin/duplicity.1' --- bin/duplicity.1 2014-01-21 16:34:00 +0000 +++ bin/duplicity.1 2014-01-30 18:44:21 +0000 @@ -515,6 +515,18 @@ argument for more information. .TP +.BI "--file-prefix, --file-prefix-manifest, --file-prefix-archive, --file-prefix-signature +Adds a prefix to all files, manifest files, archive files, and/or signature files. + +The same set of prefixes must be passed in on backup and restore. + +If both global and type-specific prefixes are set, global prefix will go before +type-specific prefixes. + +See also +.B "A NOTE ON FILENAME PREFIXES" + +.TP .BI "--file-to-restore " path This option may be given in restore mode, causing only .I path @@ -1636,6 +1648,13 @@ .PP See https://one.ubuntu.com/ for more information about Ubuntu One. +.SH A NOTE ON FILENAME PREFIXES + +Filename prefixes can be used in conjunction with S3 lifecycle rules to transition +archive files to Glacier, while keeping metadata (signature and manifest files) on S3. + +Duplicity does not require access to archive files except when restoring from backup. + .SH KNOWN ISSUES / BUGS Hard links currently unsupported (they will be treated as non-linked regular files). === modified file 'duplicity/commandline.py' --- duplicity/commandline.py 2014-01-21 16:34:00 +0000 +++ duplicity/commandline.py 2014-01-30 18:12:04 +0000 @@ -329,6 +329,15 @@ # used to provide a prefix on top of the defaul tar file name parser.add_option("--file-prefix", type = "string", dest = "file_prefix", action = "store") + + # used to provide a suffix for manifest files only + parser.add_option("--file-prefix-manifest", type = "string", dest = "file_prefix_manifest", action = "store") + + # used to provide a suffix for archive files only + parser.add_option("--file-prefix-archive", type = "string", dest = "file_prefix_archive", action = "store") + + # used to provide a suffix for sigature files only + parser.add_option("--file-prefix-signature", type = "string", dest = "file_prefix_signature", action = "store") # used in testing only - skips upload for a given volume parser.add_option("--skip-volume", type = "int", === modified file 'duplicity/file_naming.py' --- duplicity/file_naming.py 2012-02-07 22:22:16 +0000 +++ duplicity/file_naming.py 2014-01-30 18:12:04 +0000 @@ -55,47 +55,47 @@ if full_vol_re: return - full_vol_re = re.compile("^" + globals.file_prefix + "duplicity-full" + full_vol_re = re.compile("^" + globals.file_prefix + globals.file_prefix_archive + "duplicity-full" "\\.(?P