Giter VIP home page Giter VIP logo

Comments (5)

aqw avatar aqw commented on August 26, 2024

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.

cdluminate avatar cdluminate commented on August 26, 2024

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.

graudeejs avatar graudeejs commented on August 26, 2024

the # without quotes is interpreted as beginning of comment

from zfsnap.

graudeejs avatar graudeejs commented on August 26, 2024

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.

cdluminate avatar cdluminate commented on August 26, 2024

@graudeejs I can use # without escape character in fish shell.
In bash it should be escaped i.e. \#.

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.