Comments (9)
I think this is overkill
from zfsnap.
If the smallest granularity of a TTL was 1 day, then I would be inclined to agree. However, because zfsnap does support very short TTLs (down to the second), I think the lack of timezone support could be problematic for some use-cases during DST switchover.
However, I never use a TTL of less than 2 weeks, so I don't care if I lose an hour. I won't be working on this issue any time soon, and created it mostly in case someone else came along who was motivated to work on such support.
If such a feature is added, it would be good to have a flag to enable or disable adding TZ info, for those who don't want their snapshot names cluttered.
from zfsnap.
In 2 years, I haven't had a single complain about DTS (just saying)
from zfsnap.
I'd like to complain. My inbox was filled this morning with error messages of the form:
cannot create snapshot 'tank/home@2014-10-26_02.00.01--1d': dataset already exists
no snapshots were created
It took me a while to figure out the problem was due to the TZ change last night. It would be nice to fix this.
from zfsnap.
UTC is the way to go (for zfsnap)
from zfsnap.
Personally, I like local time. For instance, I sometimes want to know the state of a file as of this morning. Having to change from UTC to local time is an annoyance. Including the current TZ, would solve this problem. For instance, in Germany, you could do TIMESTAMP+CET for normal time and TIMESTAMP+CEST for DST.
from zfsnap.
@nwalfield I agree that it would be convenient to have TZ info stored in the snapshot name, but IIRC, it would be problematic to support (but certainly not impossible). It would require a change in the snapshot name format, and likely the feature would be limited to GNU's version of date
. It's amazing how few of date
's features are portable.
---Alex
from zfsnap.
FreeBSD's version of date seems to support outputting time zones.
https://www.freebsd.org/cgi/man.cgi?query=date%281%29&sektion=
from zfsnap.
@nwalfield Outputting is the easy part. It's reading in that info later and using/converting it in a way that can be compared to the current date-time. Note how the "-f" option doesn't support TZ info. :-/
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.