-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date in snapshot #74
Comments
Same here on Arch Linux running:
|
Here's the culprit: zfs-auto-snapshot/src/zfs-auto-snapshot.sh Line 537 in 277287f
To get it in your locale, just remove the |
I think it makes sense as the default. UTC is unambiguous and monotonic. Due to DST, snapshot names in local time do not always order chronologically if sorted lexographically. And if you are unlucky, snapshotting can fail due to a duplicated name.
If UTC is already the default (which I didn’t verify), then changing it means breaking backwards compatibility.
|
I agree with rlaager - UTC makes things unambiguous (ok, it won't help if you mess up server/computer time) |
what if it were configurable? :) |
@slopokeit Yeah, that's kinda where I was heading. @rlaager makes a good point to keep UTC the default, but it would be handy to have it configurable rather than having to edit the script. |
The default was local TZ until: #18 Strangely the comment thread mentions that a program option should be added to preserve backwards compatibility but the pull was merged without it. |
I have created #77 which leaves the default as UTC but adds a program option |
I made something similar but also added the timezone abbreviation to address the problem with DST: #105 |
In fact, the UTC time seems to be the way to go. I have checked with the following configuration in the
I see the name I use "Samba version 4.17.12-Debian". |
This problem still exists on Debian Bookworm |
This problem still exists on Debian Bookworm. |
I'm assuming it's recording the date as UTC? Is there any way of switching it to reflect the local time?
storage/mysqllogs@zfs-auto-snap_frequent-2017-10-20-1600 0 - 40.7K -
root@db1:~# date
Fri Oct 20 12:14:47 EDT 2017
The text was updated successfully, but these errors were encountered: