2 from bup import options, drecurse
3 from bup.helpers import *
8 x,xdev,one-file-system don't cross filesystem boundaries
9 exclude= a path to exclude from the backup (can be used more than once)
10 exclude-from= a file that contains exclude paths (can be used more than once)
11 q,quiet don't actually print filenames
12 profile run under the python profiler
14 o = options.Options(optspec)
15 (opt, flags, extra) = o.parse(sys.argv[1:])
18 o.fatal("exactly one filename expected")
20 excluded_paths = drecurse.parse_excludes(flags)
22 it = drecurse.recursive_dirlist(extra, opt.xdev, excluded_paths=excluded_paths)
28 cProfile.run('do_it()')
38 log('WARNING: %d errors encountered.\n' % len(saved_errors))