Comments (6)
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.
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.
@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.
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.
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.
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)
- FATAL: trying to delete zfs pool or filesystem? WTF?
- redirection to stderr prevents use in systemd-services HOT 6
- Recursive snapshot without parent directory
- Is this still an active project? HOT 3
- Delete any snapshots that have expired? HOT 3
- Free predefined amount of space by removing snapshots
- Possibility to use inotify to trigger snapshots HOT 4
- Argument list too long while deleting old snapshots
- Possibly relying on createtxg and guid properties HOT 4
- smb.conf for zfsnap HOT 1
- Request: Add support for a pre- and post-script HOT 4
- How do I use zfsnap to backup snapshots of one pool to another? HOT 2
- daily snapshots generated, which I never set up HOT 4
- How to use xPERIODICx scripts? HOT 1
- Wanted: new maintainer HOT 7
- zfSnap -d command is not working HOT 2
- zfsnap_delete periodic script needs filesystem arguments
- Make prefixes not need - at the end HOT 3
- Minor error in manpage HOT 4
- zfsnap destroy doesn't delete snapshots HOT 6
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 zfsnap.