Commit Graph

111 Commits

Author SHA1 Message Date
Christoph Klaffl abf3d458ff
check for partial resume state for non resume style transfers, if so reset state and retry 2018-07-26 21:43:09 +02:00
Jim Salter 21722c34b9
Merge pull request #208 from danielewood/patch-1
Added support for ZStandard compression.
2018-06-28 16:01:00 -04:00
Jim Salter c909f55bc4
Merge pull request #229 from UnlawfulMonad/master
Fix --help typo
2018-06-28 15:59:38 -04:00
Jim Salter 5e291b6f41
Merge pull request #238 from phreaker0/parser-fixes
correctly parse zfs column output (space can be included in the values)
2018-06-28 15:58:43 -04:00
Christoph Klaffl 1f88580199
implemented support for excluding datasets from replication with a regular expression 2018-06-28 17:45:18 +02:00
Christoph Klaffl 34b942ea45
correctly parse zfs column output (space can be included in the values) 2018-06-21 18:18:28 +02:00
Lucas Salibian e65879d1f8 Fix --help typo 2018-06-08 11:52:52 -04:00
Christoph Klaffl 63979973b2
if syncoid is instructed to skip snapshot creation it shouldn't attempt to prune existing ones 2018-05-02 00:15:14 +02:00
root 72245338a8 special character handling and resumable zfs receive support in syncoid 2018-04-25 15:21:56 -04:00
root 2732392088 fix use of uninitialized value in escapeshellparam() 2018-04-25 15:18:00 -04:00
root 4ebc0abef5 fix use of uninitialized string in escapeshellparam() 2018-04-25 14:58:35 -04:00
Christoph Klaffl 944a718351
Merge branch 'master' into resumeable-replication 2018-04-25 18:03:14 +02:00
Christoph Klaffl e6eec0aca0
fix snapshot list generation and incremental sync for snapshots containing whitespaces 2018-04-25 17:15:55 +02: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
Christoph Klaffl d5f4b5abba
support resumable zfs send/receive 2018-02-13 18:47:55 +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
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 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
Charles Pigott c416be3eab Remember to set default compression properly 2017-10-12 15:31:12 +01:00
Charles Pigott 7756dff623 Format compression as a hash of hashes, rather than a large if block 2017-10-12 15:14:03 +01:00
Charles Pigott f04c71604d Missed a couple of syncoid options 2017-10-12 14:54:36 +01:00
Charles Pigott ecde5acf4c An array needed a deref, and an if condition got inverted 2017-10-03 14:23:29 +01:00
Charles Pigott f8ea8f907d Add GetOptions helptext to syncoid
Lots of changes here
Notably:
nocommandcheck is now no-command-check
sshoptions can be specified multiple times
sshcipher now defaults to whatever your ssh client wants to
compress no longer accepts "no" or "0"
2017-10-03 14:23:29 +01:00
Charles Pigott b4d649fce5 Added some extra information to error messages concerning the filesystem they refer to 2017-08-11 13:30:44 +01:00
Jim Salter 2a13f1609d Update syncoid 2017-08-09 12:06:55 -04:00
Michael Brock 7e608f8a8d Merge branch 'master' of https://github.com/jimsalterjrs/sanoid 2017-07-28 18:39:21 -05:00
Michael Brock a26e3c4ad7 Updated to allow multiple options (-o) to be passed. 2017-07-28 17:43:47 -05:00
Jim Salter 96e66d6395 Update syncoid 2017-07-27 15:59:26 -04:00
Michael Brock c4ae73491c Additional changes to support -o usage 2017-07-26 19:02:13 -05:00
Michael Brock 7f00c01e90 Add -o option to pass ssh options into syncoid 2017-07-25 22:21:29 -05:00
jimsalterjrs 2bf3547eb5 fixed syncoid regression in #112 (sort creation, match guid) 2017-07-17 09:44:07 -04:00
jimsalterjrs 00cb721922 1.4.13 syncoid no longer dies on first replication failure in recursive replication calls 2017-07-12 17:03:33 -04:00
jimsalterjrs cf68e81d03 keep trying to replicate other child datasets even if one dataset fails 2017-07-12 16:59:58 -04:00
jimsalterjrs bb1e7ce481 fixed bug DIE-ing unnecessarily when no matching snapshot existed on target but --no-sync-snap had not been set 2017-07-12 16:47:37 -04:00
jimsalterjrs 243653fd9f 1.4.12 strip whitespace in template defs in sanoid.conf per #61 2017-07-12 16:25:34 -04:00
jimsalterjrs 7e22bff175 1.4.11 enhanced Syncoid to use `guid` instead of `creation` for extra snapshot identification (beyond the name) 2017-07-12 15:49:45 -04:00
jimsalterjrs b536f0c6f7 1.4.10 - add --compress=pigz-fast and --compress=pigz-slow to syncoid 2017-07-12 15:23:23 -04:00
jimsalterjrs 84a747630b added --compress=pigz-fast and --compress=pigz-slow to syncoid 2017-07-12 15:16:55 -04:00
jimsalterjrs 804fd0fd1b add -c option to specify ssh cipher directly from command line 2017-07-04 17:07:54 -04:00
Rolf Schäuble 47ff88db9d Fix #91: do not use exit codes > 255
Exit codes > 256 are treated by bash as `exit_code % 256`, which is confusing. Furthermore, using code 256 is particularly problematic, as 256%256=0, which means success, and is not was was intended here.

For further information about special exit codes, see http://tldp.org/LDP/abs/html/exitcodes.html.
2017-06-20 11:42:35 +02:00
Jim Salter 998d3fe5e5 controlpersist=yes --> controlpersist=1m
Make the SSH control channel die after 1m, to avoid complaints of accumulating dead mux channels.
2017-05-03 15:37:07 -04:00