zrepl/zfs
Christian Schwarz b9b9ad10cf
snapshotting: ability to specify timestamp location != UTC (#801)
This PR adds a new field optional field `timestamp_location` that allows
the user to specify a timezone different than the default UTC for use in
the snapshot suffix.

I took @mjasnik 's PR https://github.com/zrepl/zrepl/pull/785 and
refactored+extended it as follows:
* move all formatting logic into its own package
* disallow `dense` and `human` with formats != UTC to protect users from
stupidity
* document behavior more clearly
* regression test for existing users
2024-10-18 15:12:41 +02:00
..
property [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
test_helpers Implement DatasetMapping + basic ZFS list functionality. 2017-04-26 17:39:16 +02:00
zfscmd metric to detect filesystems rules that don't match any local dataset (#653) 2023-05-02 22:13:52 +02:00
datasetpath_visitor_test.go [#342] endpoint: always create unencrypted placeholder filesystems 2020-07-26 20:32:35 +02:00
datasetpath_visitor.go [#342] endpoint: always create unencrypted placeholder filesystems 2020-07-26 20:32:35 +02:00
encryption.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
filesystemplaceholdercreateencryptionvalue_enumer.go chore: require go 1.22/1.23, upgrade protobuf, upgrade all deps 2024-09-08 20:49:09 +00:00
holds.go endpoint: refactor, fix stale holds on initial replication failure, zfs-abstractions subcmd, more efficient ZFS queries 2020-04-18 12:26:03 +02:00
mapping.go metric to detect filesystems rules that don't match any local dataset (#653) 2023-05-02 22:13:52 +02:00
namecheck_test.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
namecheck.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
placeholder.go fix encrypt-on-receive with placeholders 2021-12-18 15:12:47 +01:00
prometheus.go metric to detect filesystems rules that don't match any local dataset (#653) 2023-05-02 22:13:52 +02:00
propertysource_enumer.go chore: require go 1.22/1.23, upgrade protobuf, upgrade all deps 2024-09-08 20:49:09 +00:00
resume_token.go zfs: ResumeToken: parse embedok, largeblockok, savedok if available 2021-02-20 17:04:57 +01:00
versions_destroy_test.go zfs: use exec.CommandContext everywhere 2020-03-27 13:08:43 +01:00
versions_destroy.go add ZREPL_DESTROY_MAX_BATCH_SIZE env var to control max batch destroy size 2022-06-30 09:22:26 +02:00
versions.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
zfs_debug.go go1.19: switch to new nolint directive that is compatible with Go 1.19 gofmt 2022-10-24 22:22:11 +02:00
zfs_pipe_linux.go chore: io/ioutil has been deprecated 2024-09-08 23:19:45 +00:00
zfs_pipe.go go1.17: run goimports to supports the new //go:build lines 2021-10-09 16:51:08 +02:00
zfs_test.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
zfs.go go1.19: zfs.SendStream.Close() after EOF would return context cancellation error 2022-10-27 00:19:06 +02:00