GithubHelp home page GithubHelp logo

Comments (4)

jimsalterjrs avatar jimsalterjrs commented on July 17, 2024 1

This is added and working.

syncoid -r sourcepool/dataset targetpool/dataset

from sanoid.

jimsalterjrs avatar jimsalterjrs commented on July 17, 2024

There's a reason syncoid isn't just using send -r.

I discovered that in practice, you can easily end up with difficulties when new filesystems are created. Keep in mind that one of the things syncoid must do is roll back target datasets if necessary to the exact condition of the newest matching snapshot with the source - this breaks horribly when you have child datasets that are created after the incremental replication has been ongoing for a while.

I do plan to implement recursive replication, but it's going to have to be more complicated than just tossing in the -r or -R arguments if it's to actually work properly and reliably, which is why it isn't already there. =)

I also plan to implement recursion in sanoid itself, so that you could for example have a single module definition for poolname/images which also covered poolname/images/image1, poolname/images/image2 ... etc, as long as the recursion flag is on for that module.

Real Soon Now (tm). =)

from sanoid.

jimsalterjrs avatar jimsalterjrs commented on July 17, 2024

In the meantime, you can do horrible, horrible hacks such as:

for dataset in `ssh root@remotebox zfs list -o name -rH poolname/datasetname`; do syncoid root@remotebox:$dataset $dataset ; done

Obviously this presumes that poolname/datasetname is the same on both sides.

from sanoid.

stevenolen avatar stevenolen commented on July 17, 2024

Thanks for the great detail! I look briefly at your code and thought that was the case, I'll wait patiently 👍

from sanoid.

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.