Git Product home page Git Product logo

Comments (6)

metromoxie avatar metromoxie commented on June 16, 2024

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.

mfinifter avatar mfinifter commented on June 16, 2024

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.

metromoxie avatar metromoxie commented on June 16, 2024

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.

mfinifter avatar mfinifter commented on June 16, 2024

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.

mfinifter avatar mfinifter commented on June 16, 2024

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.

mfinifter avatar mfinifter commented on June 16, 2024

Lazy. Won't fix. Closing.

from zfs-toolbox.

Related Issues (19)

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.