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")/bup-python" || exit $?
13 exec "$bup_python" "$0"
17 from __future__ import absolute_import
20 from bup import compat
21 from bup.compat import argv_bytes
22 from bup.git import check_repo_or_die
23 from bup.options import Options
24 from bup.helpers import die_if_errors, handle_ctrl_c, log
25 from bup.repo import LocalRepo
26 from bup.rm import bup_rm
29 bup rm <branch|save...>
31 #,compress= set compression level to # (0-9, 9 is highest) [6]
32 v,verbose increase verbosity (can be specified multiple times)
33 unsafe use the command even though it may be DANGEROUS
39 opt, flags, extra = o.parse(compat.argv[1:])
42 o.fatal('refusing to run dangerous, experimental command without --unsafe')
45 o.fatal('no paths specified')
49 bup_rm(repo, [argv_bytes(x) for x in extra],
50 compression=opt.compress, verbosity=opt.verbose)