Coder Social home page Coder Social logo

Comments (3)

timokau avatar timokau commented on July 18, 2024 1

Would it be possible to provide some sort of post-snapshot hook or native integration of btrfs send? I'd like to push a copy of my .snapshots folder to a server with a btrfs-formatted hdd (similar to what I've done with 'backintime' before, only more efficient).
Edit: this seems to do something similar, only less advanced than snapper (no pre-post snapshots).

from snapper.

aschnell avatar aschnell commented on July 18, 2024

Is the error on the sending or the receiving side?

I have done some tests and have it working for me. The setup is more complicated that explained in the btrfs wiki since .snapshots itself is a subvolume. So you have to create the directories yourself (or somehow also make snapshots of .snapshots, esp. if you also want snappers metadata for the snapshots to be synced).

bootstrap

btrfs subvolume create /backup/.snapshots
mkdir /backup/.snapshots/1
btrfs send /btrfs/.snapshots/1/snapshot | btrfs receive /backup/.snapshots/1

sync diff from 1 to 2

mkdir /backup/.snapshots/2
btrfs send -p /btrfs/.snapshots/1/snapshot /btrfs/.snapshots/2/snapshot | btrfs receive /backup/.snapshots/2

Does that help?

from snapper.

aschnell avatar aschnell commented on July 18, 2024

Hook are handled in #28. Unfortunately nobody had time to implement them yet.

from snapper.

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.