Giter VIP home page Giter VIP logo

Comments (10)

bk1285 avatar bk1285 commented on September 16, 2024

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.

digint avatar digint commented on September 16, 2024

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.

digint avatar digint commented on September 16, 2024

Fix included in btrbk-0.17.0

from btrbk.

bk1285 avatar bk1285 commented on September 16, 2024

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.

bk1285 avatar bk1285 commented on September 16, 2024

... 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.

digint avatar digint commented on September 16, 2024

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.

bk1285 avatar bk1285 commented on September 16, 2024

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.

digint avatar digint commented on September 16, 2024

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.

bk1285 avatar bk1285 commented on September 16, 2024

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.

digint avatar digint commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.