Package duplicity :: Module file_naming
[hide private]
[frames] | no frames]

Module file_naming

source code

Produce and parse the names of duplicity's backup files

Classes [hide private]
  ParseResults
Hold information taken from a duplicity filename
Functions [hide private]
 
to_base36(n)
Return string representation of n in base 36 (use 0-9 and a-z)
source code
 
from_base36(s)
Convert string s in base 36 to long int
source code
 
get_suffix(encrypted, gzipped)
Return appropriate suffix depending on status of encryption, compression, and short_filenames.
source code
 
get(type, volume_number=None, manifest=False, encrypted=False, gzipped=False, partial=False)
Return duplicity filename of specified type
source code
 
parse(filename)
Parse duplicity filename, return None or ParseResults object
source code
Variables [hide private]
  full_vol_re = re.compile("^duplicity-full" "\\.(?P<time>.*?)" ...
  full_vol_re_short = re.compile("^df" "\\.(?P<time>[0-9a-z]+?)"...
  full_manifest_re = re.compile("^duplicity-full" "\\.(?P<time>....
  full_manifest_re_short = re.compile("^df" "\\.(?P<time>[0-9a-z...
  inc_vol_re = re.compile("^duplicity-inc" "\\.(?P<start_time>.*...
  inc_vol_re_short = re.compile("^di" "\\.(?P<start_time>[0-9a-z...
  inc_manifest_re = re.compile("^duplicity-inc" "\\.(?P<start_ti...
  inc_manifest_re_short = re.compile("^di" "\\.(?P<start_time>[0...
  full_sig_re = re.compile("^duplicity-full-signatures" "\\.(?P<...
  full_sig_re_short = re.compile("^dfs" "\\.(?P<time>[0-9a-z]+?)...
  new_sig_re = re.compile("^duplicity-new-signatures" "\\.(?P<st...
  new_sig_re_short = re.compile("^dns" "\\.(?P<start_time>[0-9a-...
Function Details [hide private]

get(type, volume_number=None, manifest=False, encrypted=False, gzipped=False, partial=False)

source code 

Return duplicity filename of specified type

type can be "full", "inc", "full-sig", or "new-sig". volume_number can be given with the full and inc types. If manifest is true the filename is of a full or inc manifest file.


Variables Details [hide private]

full_vol_re

Value:
re.compile("^duplicity-full" "\\.(?P<time>.*?)" "\\.vol(?P<num>[0-9]+)\
" "\\.difftar" "(?P<partial>(\\.part))?" "($|\\.)")

full_vol_re_short

Value:
re.compile("^df" "\\.(?P<time>[0-9a-z]+?)" "\\.(?P<num>[0-9a-z]+)" "\\\
.dt" "(?P<partial>(\\.p))?" "($|\\.)")

full_manifest_re

Value:
re.compile("^duplicity-full" "\\.(?P<time>.*?)" "\\.manifest" "(?P<par\
tial>(\\.part))?" "($|\\.)")

full_manifest_re_short

Value:
re.compile("^df" "\\.(?P<time>[0-9a-z]+?)" "\\.m" "(?P<partial>(\\.p))\
?" "($|\\.)")

inc_vol_re

Value:
re.compile("^duplicity-inc" "\\.(?P<start_time>.*?)" "\\.to\\.(?P<end_\
time>.*?)" "\\.vol(?P<num>[0-9]+)" "\\.difftar" "($|\\.)")

inc_vol_re_short

Value:
re.compile("^di" "\\.(?P<start_time>[0-9a-z]+?)" "\\.(?P<end_time>[0-9\
a-z]+?)" "\\.(?P<num>[0-9a-z]+)" "\\.dt" "($|\\.)")

inc_manifest_re

Value:
re.compile("^duplicity-inc" "\\.(?P<start_time>.*?)" "\\.to" "\\.(?P<e\
nd_time>.*?)" "\\.manifest" "(?P<partial>(\\.part))?" "(\\.|$)")

inc_manifest_re_short

Value:
re.compile("^di" "\\.(?P<start_time>[0-9a-z]+?)" "\\.(?P<end_time>[0-9\
a-z]+?)" "\\.m" "(?P<partial>(\\.p))?" "(\\.|$)")

full_sig_re

Value:
re.compile("^duplicity-full-signatures" "\\.(?P<time>.*?)" "\\.sigtar"\
 "(?P<partial>(\\.part))?" "(\\.|$)")

full_sig_re_short

Value:
re.compile("^dfs" "\\.(?P<time>[0-9a-z]+?)" "\\.st" "(?P<partial>(\\.p\
))?" "(\\.|$)")

new_sig_re

Value:
re.compile("^duplicity-new-signatures" "\\.(?P<start_time>.*?)" "\\.to\
" "\\.(?P<end_time>.*?)" "\\.sigtar" "(?P<partial>(\\.part))?" "(\\.|$\
)")

new_sig_re_short

Value:
re.compile("^dns" "\\.(?P<start_time>[0-9a-z]+?)" "\\.(?P<end_time>[0-\
9a-z]+?)" "\\.st" "(?P<partial>(\\.p))?" "(\\.|$)")