Comments (6)
Yeah, I discovered this last night. Works like a charm. In case you haven't figured it out yet, zfs-auto-snapshot is set in /etc/cron.*, and I went through each of the scripts, adding the --default-exclude option.
from zfs-toolbox.
I'm wondering if there isn't a better solution that doesn't involve these somewhat complex manual configuration changes. 2 ideas:
(1) Be slightly more clever about matching the backup pool's snapshots to the local pool's snapshots, i.e., find the latest backup pool snapshot that is in the set of local pool snapshots, force rollback to this snapshot, and do an incremental send/receive from this snapshot to the latest local snapshot. Ignore the fact that the backup pool is also being auto-snapshotted, since these effectively get thrown away on every backup.
(2) At package install time for zfs-auto-backup (which doesn't yet exist), set up these configuration changes automatically by asking the user for the name of the backup pool and the local pool(s) to automatically backup. Use this information to change zfs-auto-snapshot config to add --default-exclude, and set the "com.sun:auto-snapshot" flag on all pools except the backup pool.
Any preference? I'm leaning toward (1). Seems simpler.
from zfs-toolbox.
I feel that (2) is the vastly better solution. Given that we're the only
people using this for now (and if anyone else is using it, then they'll
almost certainly be power users), I have no problem manually setting
properties on our pools and modifying cron jobs. When the day comes that we
need an install script, then that is they day we solve this in an automated
way.
I think that with (1), part of the problem will be recovery; it will just
be confusing why there are so many snapshots.
For now, I think we shouldn't worry about it, but maybe make a feature
request that we can deal with in the future.
--Joel
On Wed, Jul 11, 2012 at 9:00 AM, Matthew Finifter <
[email protected]
wrote:
I'm wondering if there isn't a better solution that doesn't involve these
somewhat complex manual configuration changes. 2 ideas:(1) Be slightly more clever about matching the backup pool's snapshots to
the local pool's snapshots, i.e., find the latest backup pool snapshot that
is in the set of local pool snapshots, force rollback to this snapshot, and
do an incremental send/receive from this snapshot to the latest local
snapshot. Ignore the fact that the backup pool is also being
auto-snapshotted, since these effectively get thrown away on every backup.(2) At package install time for zfs-auto-backup (which doesn't yet exist),
set up these configuration changes automatically by asking the user for the
name of the backup pool and the local pool(s) to automatically backup. Use
this information to change zfs-auto-snapshot config to add
--default-exclude, and set the "com.sun:auto-snapshot" flag on all pools
except the backup pool.Any preference? I'm leaning toward (1). Seems simpler.
Reply to this email directly or view it on GitHub:
https://github.com/mfinifter/zfs-auto-backup/issues/4#issuecomment-6910923
from zfs-toolbox.
I think that with (1), part of the problem will be recovery; it will just
be confusing why there are so many snapshots.
Agreed. We'll proceed with (2). I'll file the feature request.
from zfs-toolbox.
Thinking about this more, (2) doesn't preclude (1). (1) might still be a good idea so that backups still work despite not having set up the configuration correctly.
from zfs-toolbox.
Lazy. Won't fix. Closing.
from zfs-toolbox.
Related Issues (19)
- Externalize configuration HOT 2
- Python bindings for libzfs HOT 1
- Script will have problems when zfs-auto-snapshot deletes snapshots HOT 7
- Install script HOT 1
- Support datasets that have a space in their name HOT 1
- Create a "zfs-toolbox" script HOT 2
- Dry run of zfs-auto-backup on non-incremental gives erroneous errors
- create documentation for zfs-toolbox HOT 1
- Create --after and/or --range options for zfs-delete-snapshots HOT 3
- Update --verbose on zfs-auto-backup HOT 1
- zfs-rollback script HOT 1
- Enhance logging
- exec_in_shell doesn't work HOT 11
- Disable auto-snapshot of backup pool at zfs-auto-backup install time
- Support many-to-many relationship between local pools and backup pools HOT 1
- Backup only a subset of datasets, rather than entire pools HOT 3
- Move configuration into dataset properties HOT 1
- Script does not recover from failed/crashed backups HOT 2
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 zfs-toolbox.