Commit Graph

202 Commits

Author SHA1 Message Date
Christoph Klaffl 9c0468ee45
write cache files in an atomic way to prevent race conditions 2024-04-24 00:09:40 +02:00
Christoph Klaffl 6f74c7c4b3
* improve performance (especially for monitor commands) by caching the dataset list
* list snapshots only when needed
2024-04-23 23:38:47 +02:00
pajkastare 01053e6cce Removed unnecessary comment, no code change 2024-01-24 13:51:24 +01:00
pajkastare a8c15c977a Fixes jimsalterjrs/sanoid#851, updated based on review in discussion thread 2024-01-24 13:32:22 +01:00
pajkastare a5a6fc0f58 Fixes jimsalterjrs/sanoid#851 2023-10-23 21:43:46 +02:00
Christoph Klaffl 7ab0ac0cf6
trim config values 2023-07-25 22:56:25 +02:00
Christoph Klaffl 538416879d
prepare 2.2.0 2023-07-18 18:09:51 +02:00
Christoph Klaffl cc495183af
fix default behaviour if run without providing arguments 2023-04-26 19:47:49 +02:00
Christoph Klaffl b3d32d9394
Merge branch 'pr788' into pr-merger 2023-03-20 22:31:19 +01:00
Christoph Klaffl 9625a79e25
Merge branch 'pr608' into pr-merger 2023-03-20 21:14:13 +01:00
Christoph Klaffl 6deae74b7d
Merge branch 'pr606' into pr-merger 2023-03-20 21:14:07 +01:00
Christoph Klaffl ea59c0f598
Merge branch 'pr506' into pr-merger 2023-03-20 21:13:52 +01:00
Josh Soref 7a8b0adb6d spelling: overridden
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-01-01 14:43:35 -05:00
Josh Soref c37f412797 spelling: errlevel
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-01-01 14:35:55 -05:00
Josh Soref cad1215501 spelling: debugging
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-01-01 14:30:57 -05:00
Christoph Klaffl 48eefd21e8
don't try to parse stats for spares which are in use as there are none 2020-12-14 20:57:34 +01:00
Christoph Klaffl 316b01e9c2
fix duplicate key definitions by only using the first occurence and printing a warning 2020-12-09 09:46:54 +01:00
Christoph Klaffl 77d0135a60
prepare v2.1.0 release 2020-11-24 11:52:20 +01:00
Jim Salter a4cde57d29
Merge pull request #497 from phreaker0/scripts-snapshot-grouping
Scripts snapshot grouping
2020-11-01 17:47:11 -05:00
Jim Salter 6041f0982b
Merge pull request #399 from phreaker0/path2
don't use hardcoded paths
2020-11-01 17:28:20 -05:00
Christoph Klaffl adc99d0349
fixed minor warning 2020-02-17 17:43:23 +01:00
Christoph Klaffl 44f7cae115
implemented pre pruning script hook 2020-02-13 01:01:09 +01:00
Christoph Klaffl 0b582f6200
group snapshot creation together so pre/post scripts are only run once per dataset and prepare for future atomic grouping feature 2020-02-12 17:48:42 +01:00
Christoph Klaffl 34d6d44fa8
Merge branch 'master' into pr447 2020-02-11 17:45:54 +01:00
Jim Salter fee3739110
Merge pull request #463 from lopsided98/sanoid-cache-file
Move sanoid cache and lock files to subdirectories
2020-01-22 10:50:33 -05:00
Christoph Klaffl 987dcc4885
Merge branch 'master' into path2 2020-01-17 10:34:23 +01:00
Christoph Klaffl 2de006072f
fixed missing ; 2020-01-17 01:04:16 +01:00
Jim Salter 8dbb795525
Merge pull request #462 from dlangille/patch-1
remove 's in monitoring messages
2020-01-16 13:46:19 -05:00
Christoph Klaffl d7edf8ddff
remove invalid locks caused by race conditions or else the block the critical function of snapshot taking until manual intervention 2019-12-28 02:15:28 +01:00
Ben Wolsieffer 59a07f92b4 Add run-dir option. 2019-12-06 14:39:33 -05:00
Ben Wolsieffer a1f5e4c0c0 Add cache-dir option. 2019-12-06 14:37:07 -05:00
Dan Langille db0e83019f
remove 's in monitoring messages
fixes #461 - untested
2019-11-21 11:27:15 -05:00
tiedotguy 9e429de59d Fix typo in recursive 2019-11-03 09:34:25 +11:00
tiedotguy e01dceaee3 Remove unnecessary temporary 2019-11-02 22:35:58 +11:00
tiedotguy 46a640859f Collect and pass additional information to script execution
This will collect information about what snapshots are being taken in
a single batch (multiple snapshot types taken on a single dataset at
the same time) and pass it to pre/post scripts.  It also passes what
what type of script (pre, post, prune), and what type of snapshot is
being taken.
2019-11-02 12:42:20 +11:00
tiedotguy 6252cbf514 Restructure to pass hashes around in take_snapshots
This commit makes it easier to pass structured data between the loop
which decides what to snapshot, and the loop performing the actual
snapshot.
2019-11-02 12:42:20 +11:00
Christoph Klaffl 96a48efd92
prepare v2.0.3 bugfix release 2019-10-02 16:42:38 +02:00
Jim Salter f745aa25a1
Merge pull request #406 from phreaker0/dst
revert to old dst handling and make it nice
2019-09-25 16:40:45 -04:00
Donald Webster 056193ec04 Update to v2.0.2. 2019-09-20 13:28:59 -07:00
Christoph Klaffl 82230f248c
improved dst handling to only suffix the duplicate hourly snapshot on DST change 2019-06-14 07:53:40 +02:00
Christoph Klaffl 0356af9d81
Revert "Changed (and simplified) DST handling (see here: https://github.com/jimsalterjrs/sanoid/issues/155)"
This reverts commit cf496dcf86.
2019-06-13 14:31:05 +02:00
Christoph Klaffl dc2371775a
don't use hardcoded paths 2019-06-06 08:25:18 +02:00
Jim Salter 0168ee3a3c
Merge pull request #362 from shodanshok/master
Changed (and simplified) DST handling
2019-05-22 10:27:33 -04:00
Jim Salter 483ba0c3ee
version number update, oops 2019-04-20 16:48:21 -04:00
Jim Salter 607aad0a91
Add -r to zfs get -Hpt snap for zfs 8.1 2019-04-07 19:48:25 -04:00
shodanshok bfffd97910
Merge branch 'master' into master 2019-04-01 10:09:13 +02:00
Jim Salter c162e636c4
Merge pull request #320 from phreaker0/zfs-recursion
zfs recursion
2019-03-29 12:02:51 -04:00
Gionatan Danti cf496dcf86 Changed (and simplified) DST handling (see here: https://github.com/jimsalterjrs/sanoid/issues/155) 2019-03-26 14:48:32 +01:00
Christoph Klaffl ea9e989fed
only list filesystems and volumes 2019-01-30 23:26:07 +01:00
Christoph Klaffl d692972c79
Merge branch 'master' into zfs-recursion 2019-01-25 16:11:19 +01:00