Comments (10)
Hi,
rerunning with your quick fix leads to
btrbk command line client, version 0.16 (Tue Apr 28 22:38:40 2015)
WARNING: Skipping subvolume section: Subvolume "@home" not present in btrfs subvolume list for "/"
Completed within: 0s (Tue Apr 28 22:38:40 2015)
--------------------------------------------------------------------------------
Backup Summary (btrbk command line client, version 0.16)
Date: Tue Apr 28 22:38:40 2015
Config: /foo/bar/btrbk.conf
Legend:
+++ created subvolume (source snapshot)
--- deleted subvolume (source snapshot)
*** received subvolume (non-incremental)
>>> received subvolume (incremental)
--------------------------------------------------------------------------------
//@home
!!! Subvolume "@home" aborted: Subvolume "@home" not present in btrfs subvolume list for "/"
NOTE: Some errors occurred, which may result in missing backups!
Please check warning and error messages above.
NOTE: Dryrun was active, none of the operations above were actually executed!
I suspect this line to fail:
die("subvolume info not present: $sroot/$svol") unless($svol_node);
... but sorry: I have no clue how to fix this in perl ...
from btrbk.
I just merged the fresh and clean refactored code to master. A quick test shows me that your use-case works with this. Can you please try this one out and tell me the results?
from btrbk.
Fix included in btrbk-0.17.0
from btrbk.
Hi,
finally I gave the new version a try. ...but unfortuneatly, it's still failing... ? :/
Regards,
Bernd
btrbk command line client, version 0.17.0 (Thu May 7 23:30:14 2015)
Using configuration: /foo/bar//btrbk.conf
WARNING: Skipping subvolume "//@home": Failed to fetch subvolume detail
Completed within: 0s (Thu May 7 23:30:14 2015)
--------------------------------------------------------------------------------
Backup Summary (btrbk command line client, version 0.17.0)
Date: Thu May 7 23:30:14 2015
Config: /foo/bar/btrbk.conf
Legend:
+++ created subvolume (source snapshot)
--- deleted subvolume
*** received subvolume (non-incremental)
>>> received subvolume (incremental)
--------------------------------------------------------------------------------
//@home
!!! Subvolume "//@home" aborted: Failed to fetch subvolume detail
NOTE: Some errors occurred, which may result in missing backups!
Please check warning and error messages above.
NOTE: Dryrun was active, none of the operations above were actually executed!
from btrbk.
... wouldn't it be feasible to set volume to "", if it's set to "/" within the config file?
The subvolume would then be assembled as "" + "/" + "@home" instead of "/" + "/" + "@home".
from btrbk.
Strange, I just repeated my test case for this, and it works for me:
/tmp/btrbk.conf:
snapshot_create_always yes
volume /
subvolume @home
testcase:
# cat /tmp/btrfs.conf
snapshot_create_always yes
volume /
subvolume @home
# btrfs sub create /\@home
Create subvolume '//@home'
# btrbk -c /tmp/btrbk.conf dryrun
--------------------------------------------------------------------------------
Backup Summary (btrbk command line client, version 0.17.0)
Date: Fri May 8 12:42:30 2015
Config: /tmp/btrbk.conf
Legend:
+++ created subvolume (source snapshot)
--- deleted subvolume
*** received subvolume (non-incremental)
>>> received subvolume (incremental)
--------------------------------------------------------------------------------
//@home
+++ ///@home.20150508
The only possible difference might be that you have "/" mounted as subvolid=0
? (Here it's mounted with: subvol=rootfs
) Is that the case?
What is your output of btrfs sub show /\@home
?
To further investigate this, I will also need your btrbk.conf
and a full trace log: btrbk -l trace -c /foo/bar/btrbk.conf
.
Regarding your second question: No, I can't really change the volume/subvolume declarations. For this single use case, it will assemble the path as //@home
, but this is not an issue. Unix does not care about multiple slashes in paths (try ls /////foo///bar
).
from btrbk.
Hi,
sorry, my fault: Since you closed this issue, my server stopped booting...
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1445252
:-/
After recovering it manually, I now realized, that the subvolume @home is somehow not listed yet, causing your script to fail... :o
Regards,
Bernd
from btrbk.
Closing the bug, as it was a problem on the user side.
@bk1285 please reopen if it is still not working after you fixed your problems.
from btrbk.
Hi,
just another point...: Is it also possible to backup '/' as subvolume (to store my PCs configuration)?
Using
volume /
subvolume /
will result in a parsing error of the config file...
Regards,
Bernd
from btrbk.
Hi
I added an (unfinished) FAQ to the "faq" branch:
https://github.com/digint/btrbk/blob/faq/doc/FAQ.md
I hope this covers your question. Comments are welcome!
from btrbk.
Related Issues (20)
- 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)
- Backup of backups HOT 1
- send to a raw target which does not support output redirection
- Snapper question
- Retention policy per year
- Re-establish parent child relationship after btrbk restore HOT 1
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.