summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* _mountinfo: fix types in docstringsAnton Khirnov2023-10-15
|
* _mountinfo: replace list of entries with OrderedDictAnton Khirnov2023-10-14
| | | | Mapping mount id to entries.
* _mountinfo: move field docs below the fieldAnton Khirnov2023-10-14
|
* targets:TargetSSHLVM: use a per-target index file on the remoteAnton Khirnov2023-10-13
|
* targets: remove TargetSSHLXCLVMAnton Khirnov2023-10-12
| | | | | | | It is complex and fragile and has been replaced by idmapping/TargetSSHLVM/strip_mountpoint=True. Also drop nsmount.c, which was to be used with this target.
* targets:TargetSSHLVM: add strip_mountpoint optionAnton Khirnov2023-10-12
|
* targets: always pass dirs/excludes as iterable-of-str to _do_save()Anton Khirnov2023-10-08
| | | | This is cleaner.
* targets: move _resolve_mntdev() out of TargetSSHLVMAnton Khirnov2023-10-08
| | | | Make it a standalone function, it does not need anything from the class.
* _path: change components from a list into a tupleAnton Khirnov2023-10-08
|
* _path: improve parameter validationAnton Khirnov2023-10-08
|
* targets: merge two if blocksAnton Khirnov2023-10-08
| | | | This should have the same effect, but is easier to read.
* repository: do not write size stats on dry runAnton Khirnov2023-10-08
|
* repository: return None when stats file cannot be parsedAnton Khirnov2022-08-14
| | | | | Typically happens on the first run, when there's just one entry, so variance cannot be computed.
* repository: add code for reading the statsAnton Khirnov2020-11-20
|
* _mountinfo: relax limits on major device numbersAnton Khirnov2020-11-19
| | | | Major numbers can go up to 511.
* repository: log backup time and size statsAnton Khirnov2020-10-31
|
* TargetSSHLVM: resolve remote dirsAnton Khirnov2020-10-20
| | | | Should handle remote symlinks properly.
* targets: move the graft/reparent handling to lxc/lvm targetAnton Khirnov2020-10-20
| | | | It is specific to that target and does not belong with common save code.
* TargetSSH(LXC)LVM: share the save() methodAnton Khirnov2020-10-20
|
* TargetSSHLXCLVM: factor creating+mounting the snapshotAnton Khirnov2020-10-20
| | | | | Make it into its own context manager, similar to TargetSSHLVM. This is easier to follow and will allow to share more code in the future.
* TargetSSHLVM: move the snapshot mount out of try-finallyAnton Khirnov2020-10-20
| | | | Currently it would try to unmount the snapshot even if mounting failed.
* example: make loglevel configurable from comandlineAnton Khirnov2020-10-19
|
* TargetSSH: don't raise NotImplemented for proxy/port specAnton Khirnov2020-10-18
|
* targets: make sure LV snapshot names start with a letterAnton Khirnov2020-10-18
| | | | Seems to be required for LVM to accept them.
* _mountinfo: skip mount entires with non-absolute rootAnton Khirnov2020-10-18
|
* _mountinfo: drop forgotten printAnton Khirnov2020-10-18
|
* targets: add more docsAnton Khirnov2020-10-18
|
* Do not pass data dir to Target.save().Anton Khirnov2020-10-18
| | | | It is not used there.
* targets/TargetSSHLXCLVM: inherit from TargetSSHLVMAnton Khirnov2020-10-18
| | | | Use new parent's _snapshot_lv() to simplify code.
* targets: LV names are not actually limited to 15 charactersAnton Khirnov2020-10-18
|
* targets: implement an SSH+LVM targetAnton Khirnov2020-10-18
|
* Target: implement repr rather than strAnton Khirnov2020-10-18
| | | | Also, print the class name in the string.
* targets: import SSHRemote directlyAnton Khirnov2020-10-18
|
* Add a dry-run option.Anton Khirnov2020-10-18
|
* targets/TargetSSH: actually use bup_exec variableAnton Khirnov2020-10-18
|
* targets: use target class name in the logger nameAnton Khirnov2020-10-18
|
* repository: log caught exceptions as logging.exceptionAnton Khirnov2020-10-18
|
* targets: check that at least one dir to backup is givenAnton Khirnov2020-10-18
| | | | | It makes no sense to backup zero dirs and some things might break in potentially dangerous ways if attempted.
* targets/TargetSSH: add a class attribute prototypeAnton Khirnov2020-10-16
|
* targets/TargetSSHLXCLVM: generate random snapshot nameAnton Khirnov2020-10-16
|
* repository: fix logger nameAnton Khirnov2020-10-16
|
* repository: rewrite results processingAnton Khirnov2020-10-16
| | | | | | | Drop the use of retcode, as it is not very meaningful. Drop all_ok, as it is not very useful. Catch all exceptions from individual targets and wrap them as failed results.
* _ssh_client: add loggingAnton Khirnov2020-10-16
|
* repository: add loggingAnton Khirnov2020-03-10
|
* targets: add missing class attributeAnton Khirnov2020-03-10
|
* targets: fix function nameAnton Khirnov2020-03-10
|
* targets: add __str__ methods to targetsAnton Khirnov2020-03-10
| | | | Allows to easily get a descriptive string for a target.
* Rename bupper to lbup.Anton Khirnov2020-02-15
| | | | | bupper already exists. lbup is a randomly chosen word containing bup
* targets: further fixes and improvementsAnton Khirnov2020-02-14
| | | | | | | | Now a static mount directory is used for snapshot mounts. This is necessary due to how bup index works, otherwise it'd see everything as changed on every new backup. Also, extend logging and make the remote bupdir configurable.
* lxvlvm: actually read from the snapshotAnton Khirnov2020-02-14
| | | | Also, check all the remote outputs more thoroughly.