Comments (5)
Ok, that's a cool idea. I've wanted to extend zfsnap to make and keep bookmarks automatically (I've been bit once by one pool no longer having a shared snapshot with it's backup pool. :-/)
I havn't played with bookmarks yet. What kind of info can we get about them? (for example, does zsf get all pool#latest
work?) It'd be nice to have an easy way to determine if a given bookmark exists at the destination.
---Alex
from zfsnap.
Command
zfs get all pool#latest
cannot open 'pool#latest': invalid dataset name
fails on my side with zfsonlinux 0.6.5.8
. I've not played with bookmarks much too, and now the easiest way I found to detect a bookmark is a hack ...
latest_found=$(zfs list -H -t bookmark | awk '$1 ~ /pool#latest/{print $1}' | wc -l)
# 0 for not found, =1 for found
This way works for snapshot detection but not for bookmarks...
zfs destroy -n pool/dataset@snap
from zfsnap.
the #
without quotes is interpreted as beginning of comment
from zfsnap.
I don't know about zfs bookmarks, but perhaps you can consider using %
instead.
Edit.
Hmm. I was wrong.... on some shells it's not interpreted in any way if there is no space before #
from zfsnap.
@graudeejs I can use #
without escape character in fish
shell.
In bash it should be escaped i.e. \#
.
from zfsnap.
Related Issues (20)
- 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
- Disable filtering when destroying HOT 1
- [feature] Add an option to store TTL as ZFS property - instead of being part of the snapshot name HOT 1
- 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
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.