zrepl/config
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
..
samples treat empty jobs & empty YAML as valid & ship empty jobs in deb/rpm (#788) 2024-05-14 19:18:22 +02:00
config_dep_test.go config: add test for fromdefaults behavior 2020-07-26 20:32:35 +02:00
config_duration.go config: support zrepl's day and week units for snapshotting.interval 2022-10-27 00:19:06 +02:00
config_global_test.go docs/monitoring: change suggested prometheus port to 9811 2021-03-28 18:18:02 +02:00
config_jobid_test.go new features: {resumable,encrypted,hold-protected} send-recv, last-received-hold 2020-02-14 22:00:13 +01:00
config_minimal_test.go treat empty jobs & empty YAML as valid & ship empty jobs in deb/rpm (#788) 2024-05-14 19:18:22 +02:00
config_positiveintervalormanual_test.go pull job: support manual-only invocation 2019-03-16 14:24:05 +01:00
config_recv_test.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
config_send_test.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
config_snapshotting_test.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
config_test.go treat empty jobs & empty YAML as valid & ship empty jobs in deb/rpm (#788) 2024-05-14 19:18:22 +02:00
config_transport_test.go config: validate presence of port in addresses 2019-09-28 14:25:14 +02:00
config.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
retentiongrid.go [#292] pruning: add func MustNewKeepGrid 2020-09-02 22:45:44 +02:00