Giter VIP home page Giter VIP logo

Comments (6)

utrenkner avatar utrenkner commented on August 26, 2024 1

I was just looking for such an option in zfsnap. I would fully support @bougui 's suggestion. That syntax (but without the equal sign) is used also by tar, tarsnap.

From FreeBSD's tar(1):

     --exclude pattern
	     Do	not process files or directories that match the	specified pat-
	     tern.  Note that exclusions take precedence over patterns or
	     filenames specified on the	command	line.

     [...]

     -X	filename, --exclude-from filename
	     Read a list of exclusion patterns from the	specified file.	 See
	     --exclude for more	information about the handling of exclusions.

Would be great to have this also in zfsnap!

from zfsnap.

otraupe avatar otraupe commented on August 26, 2024

That would be nice. I have a backup data set there which shouldn't be snapshotted because the pool would be depleted in no time.

from zfsnap.

aqw avatar aqw commented on August 26, 2024

@sean- @otraupe I agree, this would be a very handy feature. I currently just work around it by calling targets in one call.

However, while this would be nice, I don't see a clear path towards making this work when creating snapshots; destroying snapshots shouldn't be a problem.

How do you see the syntax working for something like this?

---Alex

from zfsnap.

otraupe avatar otraupe commented on August 26, 2024

Alex, thanks for the reply!

Could you script-wise translate the recursive call to the zfs
snapshotting feature into single non-recursive ones?

Ole

Am 17.11.2015 um 11:04 schrieb Alex Waite:

@sean- https://github.com/sean- @otraupe
https://github.com/otraupe I agree, this would be a very handy
feature. I currently just work around it by calling targets in one call.

However, while this would be nice, I don't see a clear path towards
making this work when creating snapshots; destroying snapshots
shouldn't be a problem.

How do you see the syntax working for something like this?

---Alex


Reply to this email directly or view it on GitHub
#68 (comment).

from zfsnap.

bougui avatar bougui commented on August 26, 2024

Hello all,

we would love to see and exclude list option, even if we know we can destroy those no require snapshot with a simple script, but having an option to exclude some dataset from zfssnap would be a very big plus for us 👍 .

An option could be something similar to rsync --exclude

see rsync man page
--exclude=PATTERN exclude dataset matching PATTERN
--exclude-from=FILE read exclude patterns from FILE

This would be great, because we would be able to provision a single ascii file matching dataset that we don't want snapshot for.

Thanks

Guillaume.

from zfsnap.

bill-mcgonigle avatar bill-mcgonigle commented on August 26, 2024

the other script uses the com.sun:auto-snapshot=false property setting to mark excludes. I was attempting to switch over to zfsnap but ran into this issue.
We want to be able to add new filesystems ad hoc and have them snapshotted without editing the crontab but still be able to mark a few "temp" filesystems as having no snapshots.

from zfsnap.

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.