3 # https://sourceware.org/bugzilla/show_bug.cgi?id=26034
4 export "BUP_ARGV_0"="$0"
7 export "BUP_ARGV_${arg_i}"="$arg"
11 # Here to end of preamble replaced during install
12 bup_python="$(dirname "$0")/../../config/bin/python" || exit $?
13 exec "$bup_python" "$0"
17 from __future__ import absolute_import
20 sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
22 from bup import compat
23 from bup.compat import argv_bytes
24 from bup.git import check_repo_or_die
25 from bup.options import Options
26 from bup.helpers import die_if_errors, handle_ctrl_c, log
27 from bup.repo import LocalRepo
28 from bup.rm import bup_rm
31 bup rm <branch|save...>
33 #,compress= set compression level to # (0-9, 9 is highest) [6]
34 v,verbose increase verbosity (can be specified multiple times)
35 unsafe use the command even though it may be DANGEROUS
41 opt, flags, extra = o.parse(compat.argv[1:])
44 o.fatal('refusing to run dangerous, experimental command without --unsafe')
47 o.fatal('no paths specified')
51 bup_rm(repo, [argv_bytes(x) for x in extra],
52 compression=opt.compress, verbosity=opt.verbose)