Comments (3)
I'm afraid this is the expected behaviour. btrbk does not perform checks on the snapshot_dir, mainly because it can also be a regular directory, and then it will not show up on btrfs subvol list
then. This would complicate things on ssh sources, so I decided not to implement checks on this.
Note that there are also other use cases where snapshot creation may fail, and as long as btrfs-progs does not provide a "dry-run" functionality itself, it is almost impossible to really check for all possible errors of the btrfs commands.
I've been thinking of implementing a "btrbk check" action which would do all kind of checking, but for now this is simply "functions as expected"...
from btrbk.
OK but should it not at least check for the exitense of it by doing a sinple ls or in some other way whether or not it's a subvolume would be irrelevant really just a though
from btrbk.
Originally, I wanted btrbk to depend only on the btrfs
command (which makes it much easier to setup a chroot on ssh for example). As btrbk grows, I might need to change this, e.g. for a new "checkconfig" action.
from btrbk.
Related Issues (20)
- Is it safe to dedupe snapshots on the server and the client?
- Is my configuration wrong? I keep getting snapshots in the wrong folder HOT 6
- Failed to fetch subvolume detail for snapshot_dir HOT 1
- Double daily backups sometimes... HOT 1
- understanding target_preserve_min
- Is 650 GB per day between hard disks connected by 1 GBit ethernet ok? HOT 1
- Feature request : BTRBK + grub-btrfs - Restore the snapshot currently booted - like Timeshift
- Why is btrbk only creating snapshots and not transfering?
- dry-run ignores lock
- whatever default shell is used despite it is not a posix compatible shell
- Not optimal behavior for low quality network connections
- [Question] How to specify clone sources from snapshots of other unrelated subvolumes?
- ERROR: ... unable to destroy quota group: Device or resource busy
- ERROR: clone: did not find source subvol HOT 4
- Question: duplicated instance when /etc/crontab set to run hourly at 00 minute HOT 1
- [Question] Quarterly retention
- [Feature Request] configurable timestamps / names for snapshots
- snapshot_dir required even when `snapshot_create` set to `no`
- btrbk doesn't append a command with "sudo -n" if ssh is used and backend_local_user=btrfs-progs-sudo
- [Bug Report] "btrbk diff" without "sudo" throws error (backend_local_user=btrfs-progs-sudo)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrbk.