3 bup_python="$(dirname "$0")/bup-python" || exit $?
4 exec "$bup_python" "$0" ${1+"$@"}
9 from bup import git, options, client
10 from bup.helpers import *
14 [BUP_DIR=...] bup init [-r host:path]
16 r,remote= remote repository path
18 o = options.Options(optspec)
19 (opt, flags, extra) = o.parse(sys.argv[1:])
22 o.fatal("no arguments expected")
26 git.init_repo() # local repo
27 except git.GitError, e:
28 log("bup: error: could not init repository: %s" % e)
32 git.check_repo_or_die()
33 cli = client.Client(opt.remote, create=True)