diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-15 11:05:43 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-15 11:05:43 +0100 |
commit | 00bf9f3eafff6f29b4fcf18d7c1f2ab2b1310c16 (patch) | |
tree | b5430fa827e48b6e42e3f49a1b4e188675bef6d3 | |
parent | 1c33c917bbcad2924bb722f77c7aaa4f511a299c (diff) |
Rename bupper to lbup.
bupper already exists.
lbup is a randomly chosen word containing bup
-rwxr-xr-x | example.py | 5 | ||||
-rw-r--r-- | lbup/__init__.py (renamed from bupper/__init__.py) | 0 | ||||
-rw-r--r-- | lbup/_ssh_client.py (renamed from bupper/_ssh_client.py) | 0 | ||||
-rw-r--r-- | lbup/_sshfp_policy.py (renamed from bupper/_sshfp_policy.py) | 0 | ||||
-rw-r--r-- | lbup/exceptions.py (renamed from bupper/exceptions.py) | 0 | ||||
-rw-r--r-- | lbup/repository.py (renamed from bupper/repository.py) | 4 | ||||
-rw-r--r-- | lbup/ssh_remote.py (renamed from bupper/ssh_remote.py) | 0 | ||||
-rw-r--r-- | lbup/targets.py (renamed from bupper/targets.py) | 6 |
8 files changed, 8 insertions, 7 deletions
@@ -3,8 +3,9 @@ import argparse import sys -from bupper.repository import Repo -from bupper.targets import TargetLocal +from lbup.repository import Repo +from lbup.ssh_remote import SSHRemote +from lbup.targets import TargetLocal, TargetSSH, TargetSSHLXCLVM # define the backup targets tgts = ( diff --git a/bupper/__init__.py b/lbup/__init__.py index e69de29..e69de29 100644 --- a/bupper/__init__.py +++ b/lbup/__init__.py diff --git a/bupper/_ssh_client.py b/lbup/_ssh_client.py index dec3390..dec3390 100644 --- a/bupper/_ssh_client.py +++ b/lbup/_ssh_client.py diff --git a/bupper/_sshfp_policy.py b/lbup/_sshfp_policy.py index 8b7c2c7..8b7c2c7 100644 --- a/bupper/_sshfp_policy.py +++ b/lbup/_sshfp_policy.py diff --git a/bupper/exceptions.py b/lbup/exceptions.py index 69201ef..69201ef 100644 --- a/bupper/exceptions.py +++ b/lbup/exceptions.py diff --git a/bupper/repository.py b/lbup/repository.py index 98a4984..0cb1161 100644 --- a/bupper/repository.py +++ b/lbup/repository.py @@ -31,7 +31,7 @@ class Repo: :param str bup_dir: path to the bup repository, defaults to BUP_DIR or ~/.bup :param str data_dir: path to the directory for storing the runtime data, - defaults to ~/.local/var/bupper + defaults to ~/.local/var/lbup """ bup_dir = None data_dir = None @@ -45,7 +45,7 @@ class Repo: bup_dir = os.path.expanduser('~/.bup') if data_dir is None: - data_dir = os.path.expanduser('~/.local/var/bupper/') + data_dir = os.path.expanduser('~/.local/var/lbup/') # create the data dir, if it does not already exist os.makedirs(data_dir, 0o700, exist_ok = True) diff --git a/bupper/ssh_remote.py b/lbup/ssh_remote.py index 634c86a..634c86a 100644 --- a/bupper/ssh_remote.py +++ b/lbup/ssh_remote.py diff --git a/bupper/targets.py b/lbup/targets.py index 1485690..0d3ffe8 100644 --- a/bupper/targets.py +++ b/lbup/targets.py @@ -214,8 +214,8 @@ class TargetSSHLXCLVM(TargetSSH): # make sure the mount directory exists # due to how bup index works, the mount directory has to stay the # same for each backup - # we use BUP_DIR/bupper_mount - container_mountpoint = '%s/%s' % (container_bupdir, 'bupper_mount') + # we use BUP_DIR/lbup_mount + container_mountpoint = '%s/%s' % (container_bupdir, 'lbup_mount') self._paramiko_exec_cmd(container, 'mkdir -p -m 700 ' + container_mountpoint) save_opts = ['--strip-path', container_mountpoint] @@ -276,7 +276,7 @@ class TargetSSHLXCLVM(TargetSSH): raise BackupException('Unexpected LV/VG name: %s\t%s' % (lv_name, vg_name)) # create a read-only snapshot - snapshot_name = 'bupper_' + lv_name + snapshot_name = 'lbup_' + lv_name self._paramiko_exec_cmd(parent, 'lvcreate --permission r --snapshot -L {size} -n {name} {origin}' .format(size = self._snapshot_size, name = snapshot_name, |