Comments (4)
This is added and working.
syncoid -r sourcepool/dataset targetpool/dataset
from sanoid.
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.
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.
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)
- How to tell sanoid not to take snapshot while syncoid is running? HOT 3
- syncoid backups out of sync HOT 2
- [question] Is syncoid inital offline sync possible? HOT 1
- Recursive setting cannot be enabled if trailing space present HOT 1
- syncoid: ControlSocket already exists HOT 2
- ubuntu 24.04 fail to start sanoid service HOT 1
- My sanoid.conf is not being recognized. HOT 1
- sanoid --prune-snapshots performance is bad because of iszfsbusy HOT 5
- [feature request / question] Auto-mount last snapshot done by sanoid HOT 6
- Regression: "invalid flags combined with -t" when resuming with `syncoid --sendoptions`
- Building deb package fails on ubuntu 24.04 HOT 7
- Syncoid question: Hook script or other way of adding data to a log on the remote target system? HOT 1
- Syncoid: sync incremental - hold selected snapshots during sync HOT 2
- Syncoid flag "--exclude=" is excluding datasets of similar name HOT 6
- Unknown option: no-clone-rollback ?
- Restrict sanoid to single pool or list of pools HOT 1
- Debian package incompatible with OpenZFS built from sources HOT 1
- --force-delete does not seem to delete datasets HOT 2
- False error: ZFS resume feature not available on source and target machine
- Parallel pruning 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 sanoid.