Commit Graph

408 Commits

Author SHA1 Message Date
Christoph Klaffl e6eec0aca0
fix snapshot list generation and incremental sync for snapshots containing whitespaces 2018-04-25 17:15:55 +02:00
Jim Salter 2b82a14e88
Merge pull request #176 from phreaker0/special-char-fixes
special char fixes
2018-04-25 09:48:08 -04:00
Christoph Klaffl 1b5ab20b0d
use resumeable zfs send/receive as default if supported by source and target 2018-04-25 14:58:01 +02:00
danielewood ecf2a852b5
Added support for ZStandard compression.
Available in all major distros with a simple yum/apt-get/pkg.

References: 
ZSTD Compression by Allan Jude - https://www.youtube.com/watch?v=hWnWEitDPlM
Zstandard - https://facebook.github.io/zstd/
2018-04-12 17:43:08 -07:00
Janne Savikko 8dfdd1a716 syncoid: fix --version in options list of helptext
syncoid does not have verbose option. Replace verbose with version in
options list of helptext.
2018-03-15 13:50:12 +02:00
Christoph Klaffl b405b58980
let monitor-capacity parse the limits from the configuration file 2018-03-01 09:22:22 +01:00
Christoph Klaffl f961a9f447
implemented monitor-capacity flag for checking zpool capacity limits in the nagios monitoring format 2018-02-27 17:58:51 +01:00
Christoph Klaffl 01398789f6
Revert "let monitor-health check the capacity too"
This reverts commit 1f64c9c35a.
2018-02-27 17:53:32 +01:00
Christoph Klaffl 6f29bed441
Revert "allow monitor-health to optionally check zpool capacity too by providing limits along the flag"
This reverts commit 6c695f1a86.
2018-02-27 17:53:04 +01:00
Christoph Klaffl 6c695f1a86
allow monitor-health to optionally check zpool capacity too by providing limits along the flag 2018-02-26 18:16:06 +01:00
Christoph Klaffl d0f1445784
defer cache updates after snapshot pruning and do them after all pruning is done (waiting for the cache update lock if necessary) 2018-02-22 17:29:58 +01:00
Christoph Klaffl 06d029db68
remove destroyed snapshots from cache file instead of regenerating the whole thing (which can take very long on systems with many snapshots and/or datasets) 2018-02-22 16:53:30 +01:00
Christoph Klaffl 1f64c9c35a
let monitor-health check the capacity too 2018-02-20 18:16:35 +01:00
Christoph Klaffl d5f4b5abba
support resumable zfs send/receive 2018-02-13 18:47:55 +01:00
Attie Grande e902df1ef2 also made warnings quiet 2018-01-06 11:03:02 +00:00
Attie Grande 8a2a673c58 fixed loud 'NEWEST SNAPSHOT' message 2018-01-06 11:01:44 +00:00
Martin van Wingerden 742db32e68 Made two INFO prints mutable
Added a quiet check for two non-controllable INFO prints

Fixes: #182

Signed-off-by: Martin van Wingerden <martin@martinvw.nl>
2017-12-29 20:02:01 +01:00
Christoph Klaffl 2a3d91e446
fixed weekly snapshot interval 2017-12-13 00:44:48 +01:00
Christoph Klaffl 85cc99c9e6
accidentally removed helptext 2017-12-10 16:56:56 +01:00
Christoph Klaffl bb5fc81c0d
Merge branch 'master' into special-char-fixes 2017-12-10 16:55:08 +01:00
Christoph Klaffl 3027831095
escape all remaining snapshot names which could have special characters 2017-12-10 16:32:49 +01:00
Christoph Klaffl adca6230b7
missed one regular expression 2017-12-10 16:10:49 +01:00
Christoph Klaffl e260f9095f
escape filesystem names as needed to avoid interpreting special characters like whitespace and stop
interpreting metacharacters in fs names for some regular expressions, fixes #40
2017-12-10 16:05:08 +01:00
Christoph Klaffl 371f8ff318
exit with error code upon failure 2017-12-06 23:41:15 +01:00
Christoph Klaffl ceb1397ef0
Revert "exit with error code upon failure"
This reverts commit 8d4484a2d1.
2017-12-06 23:40:23 +01:00
Christoph Klaffl 53894b2855
indentation fix 2017-12-06 23:36:13 +01:00
Christoph Klaffl 8d4484a2d1
exit with error code upon failure 2017-12-06 23:24:34 +01:00
Christoph Klaffl e61ccf1c9d
added test for checking for correct DST handling behaviour 2017-12-06 20:24:54 +01:00
Christoph Klaffl c1f7cd4241
fixed snapshot suffix 2017-12-06 20:23:52 +01:00
Christoph Klaffl 9a6cdb8543
handle DST (daylight saving times) properly for hourly and daily snapshots, fixes #155 2017-12-06 20:15:29 +01:00
Christoph Klaffl 31da53140f
implemented a simple test which will take snapshots over a whole year and
checks the resulting snapshot list
2017-12-06 19:00:44 +01:00
Jason Lewis 4a3e93372c check for emtpy lockfile 2017-11-20 15:16:43 +11:00
Christoph Klaffl ac16b2128e
disable monitoring of frequent snapshots 2017-11-09 17:44:04 +01:00
Christoph Klaffl 4649704046
codestyle fix and disable monitoring of weekly snapshots 2017-11-09 17:41:52 +01:00
Christoph Klaffl 00b9206829
implemented weekly period 2017-11-09 09:44:40 +01:00
Christoph Klaffl 293d83bdaa versioning and compatibility check for default configuration file 2017-11-08 22:08:02 +01:00
Christoph Klaffl bc2f8bd4e9 Revert "hardcoded new defaults"
This reverts commit c9adcdab1e.
2017-11-08 21:48:37 +01:00
Christoph Klaffl 8bd98f1800 added more documentation for frequent snapshots 2017-11-08 21:40:30 +01:00
Jim Salter f6519c0aea
Merge pull request #162 from LordAro/helptext
Helptext syncoid, take 2
2017-11-08 14:25:18 -05:00
Christoph Klaffl c9adcdab1e hardcoded new defaults 2017-11-08 20:25:07 +01:00
Charles Pigott 90e6a401da Missed some compression variable renames 2017-11-08 19:01:52 +00:00
Charles Pigott 11da17fa4a Fix compress arg handling 2017-11-08 19:01:52 +00:00
Charles Pigott 21a6881c4b Unrevert syncoid 2017-11-08 19:01:52 +00:00
Christoph Klaffl d8613d1379 implemented frequent snapshots with configurable period
Fixes #75
2017-11-08 19:58:33 +01:00
Jim Salter 09a879664a
Merge pull request #161 from phreaker0/cleanup
removed trailing whitespace
2017-11-08 13:47:00 -05:00
Christoph Klaffl dbe33170e7
removed trailing whitespace 2017-11-08 17:30:52 +01:00
jimsalterjrs 368a9fe78e default to not manually specifying an SSH cipher 2017-11-08 11:02:39 -05:00
jimsalterjrs 0be8076145 revert syncoid due to compress options error in GetOpt version 2017-11-08 10:52:23 -05:00
Jim Salter 1545d6a20c
me as maintainer, zfs | zfsutils-linux deps 2017-11-08 10:12:41 -05:00
Jim Salter 03c15e42b5
Merge pull request #148 from DHowett/master
Build sanoid as a native Debian package
2017-11-08 10:10:21 -05:00