Giter VIP home page Giter VIP logo

Comments (8)

digint avatar digint commented on August 12, 2024

Is /media/Storage3/@HomeSnaps already present on your filesystem? Note that btrbk does not create the backup target subvolume (as well as the snapshot directory specified by snapshot_dir).
If it is not, run btrfs subvolume create /media/Storage3/@HomeSnaps prior to running btrbk.

If it is already present, you might have found a bug. Could you please re-run btrbk with debug output enabled:

btrbk -l debug -c /etc/btrbk/btrbk.conf.example dryrun > /tmp/btrbk_debug.log

from btrbk.

grondinm avatar grondinm commented on August 12, 2024

haha i was already running with debug on when you posted your reply. Here is the output:

btrbk -c /etc/btrbk/btrbk.conf.example -l debug dryrun
btrbk command line client, version 0.13 (Fri Mar 20 12:53:54 2015)
config: parsing file: /etc/btrbk/btrbk.conf.example
config: adding option "snapshot_dir=@Backups/" to root context
config: adding option "snapshot_create_always=yes" to root context
config: adding option "incremental=no" to root context
config: adding option "preserve_day_of_week=sunday" to root context
config: adding option "snapshot_preserve_daily=all" to root context
config: adding option "snapshot_preserve_weekly=4" to root context
config: adding option "snapshot_preserve_monthly=1" to root context
config: adding option "target_preserve_daily=all" to root context
config: adding option "target_preserve_weekly=4" to root context
config: adding option "target_preserve_monthly=1" to root context
config: adding option "btrfs_commit_delete=after" to root context
config: adding option "receive_log=no" to root context
config: context forced to: root
config: adding volume "/mnt/btrfsroot" to root context
config: adding subvolume "@Home" to volume context: /mnt/btrfsroot
config: adding target "/media/Storage3/@HomeSnaps" (type=send-receive) to subvolume context: /mnt/btrfsroot/@Home

/sbin/btrfs subvolume show /mnt/btrfsroot 2>/dev/null

Command execution successful
found btrfs root: /mnt/btrfsroot

/sbin/btrfs subvolume list -a -c -u -q -R /mnt/btrfsroot

Command execution successful
parsed 3 total subvolumes for filesystem at: /mnt/btrfsroot

/sbin/btrfs subvolume show /media/Storage3/@HomeSnaps 2>/dev/null

Command execution successful
parsed 10 subvolume detail items: /media/Storage3/@HomeSnaps

/sbin/btrfs subvolume list -a -c -u -q -R /media/Storage3/@HomeSnaps

Command execution successful
parsed 1 total subvolumes for filesystem at: /media/Storage3/@HomeSnaps
No subvolumes found in: /media/Storage3/@HomeSnaps
WARNING: Skipping target: Failed to read btrfs subvolume list for "/media/Storage3/@HomeSnaps"
Creating subvolume snapshot for: /mnt/btrfsroot/@Home
[btrfs] snapshot (ro):
[btrfs] source: /mnt/btrfsroot/@Home
[btrfs] target: /mnt/btrfsroot/@Backups/@Home.20150320

/mnt/btrfsroot/@Backups/@Home.20150320

(dryrun) /sbin/btrfs subvolume snapshot -r /mnt/btrfsroot/@Home /mnt/btrfsroot/@Backups/@Home.20150320

WARNING: Skipping cleanup of snapshots for subvolume "/mnt/btrfsroot/@Home", as at least one target aborted earlier

Completed within: 0s (Fri Mar 20 12:53:54 2015)

Backup Summary (btrbk command line client, version 0.13)

Date:   Fri Mar 20 12:53:54 2015
Config: /etc/btrbk/btrbk.conf.example

/mnt/btrfsroot/@Home
+++ /mnt/btrfsroot/@Backups/@Home.20150320
!!! Target "/media/Storage3/@HomeSnaps" aborted: Failed to read btrfs subvolume list for "/media/Storage3/@HomeSnaps"

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!

And the output of the command that executes just before the failure in case it is to blame...
http://pastebin.com/GW6taHKh

Had to put it in pasetbin since git was removing part of the output...

from btrbk.

digint avatar digint commented on August 12, 2024

Thanks, I identified a bug introduced in commit: 14e675b

btrbk now has problems with empty backup subvolumes. As a workaround, simply create a dummy subvolume:

btrfs subvolume create /media/Storage3/@HomeSnaps/dummy

...while I'm fixing...

from btrbk.

grondinm avatar grondinm commented on August 12, 2024

great thank you

from btrbk.

digint avatar digint commented on August 12, 2024

fixed in d17d0ab

from btrbk.

digint avatar digint commented on August 12, 2024

fixed in btrbk v0.14

from btrbk.

grondinm avatar grondinm commented on August 12, 2024

Thank you for moving so quick on this.

from btrbk.

digint avatar digint commented on August 12, 2024

It's always nice to see that other people are also using btrbk. I hope it turns out to be useful for you as it is for me! Don't hesitate to create feature requests or ask for help, every feedback helps me improving this project.
Also don't forget to "star" this project if you like it, so that other people can find it more easily.

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.