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 comma-seperated list of paths to exclude from the backup
10 q,quiet don't actually print filenames
11 profile run under the python profiler
13 o = options.Options('bup drecurse', optspec)
14 (opt, flags, extra) = o.parse(sys.argv[1:])
17 o.fatal("exactly one filename expected")
20 excluded_paths = [realpath(x) for x in opt.exclude.split(",")]
24 it = drecurse.recursive_dirlist(extra, opt.xdev, excluded_paths)
30 cProfile.run('do_it()')
40 log('WARNING: %d errors encountered.\n' % len(saved_errors))