mirror of
http://gitlab.bashclub.org/bashclub/zsync.git
synced 2024-11-23 11:43:07 +01:00
v1.0.5
This commit is contained in:
parent
da99f17377
commit
950c6225fc
19
CHANGELOG.md
19
CHANGELOG.md
@ -1,21 +1,28 @@
|
||||
# Change log
|
||||
|
||||
## [v1.0.5] - 2024-02-22
|
||||
|
||||
### Fixed
|
||||
- checkzfs_local parameter
|
||||
|
||||
## [v1.0.4] - 2024-02-22
|
||||
|
||||
### Added
|
||||
- Fix download link in README.md
|
||||
- Add checkzfs_local parameter to leave --source parameter empty
|
||||
- Fix logrotate config
|
||||
- checkzfs_local parameter to leave --source parameter empty
|
||||
|
||||
### Fixed
|
||||
- download link in README.md
|
||||
- logrotate config
|
||||
|
||||
## [v1.0.3] - 2024-02-22
|
||||
|
||||
### Added
|
||||
- Add sshport to checkzfs command
|
||||
- Add checkzfs spool options to default config
|
||||
- sshport to checkzfs command
|
||||
- checkzfs spool options to default config
|
||||
|
||||
## [v1.0.2] - 2024-02-21
|
||||
|
||||
### Added
|
||||
### Fixed
|
||||
- Fix checkzfs call and log message
|
||||
|
||||
## [v1.0.1] - 2024-02-11
|
||||
|
@ -3,7 +3,7 @@
|
||||
# bashclub zfs replication script
|
||||
# Author: (C) 2024 Thorsten Spille <thorsten@spille-edv.de>
|
||||
|
||||
__version__=v1.0.4
|
||||
__version__=v1.0.5
|
||||
|
||||
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
||||
|
||||
@ -321,11 +321,12 @@ if [ $checkzfs_disabled -eq 0 ]; then
|
||||
echo "<<<local>>>" > /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
||||
|
||||
if [[ $checkzfs_local -eq 0 ]]; then
|
||||
checkzfs_source=--source\ $source:$sshport
|
||||
c_key=--source
|
||||
c_value=$source:$sshport
|
||||
fi
|
||||
|
||||
if [[ $debug == "-v" ]]; then log "[DEBUG] Command:\n$checkzfs $checkzfs_source --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter \"$checkzfs_filter\" >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}"; fi
|
||||
$checkzfs $checkzfs_source --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter "$checkzfs_filter" >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
||||
if [[ $debug == "-v" ]]; then log "[DEBUG] Command:\n$checkzfs $c_key $c_value --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter \"$checkzfs_filter\" >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}"; fi
|
||||
$checkzfs $c_key $c_value --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter "$checkzfs_filter" >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
||||
if [ $checkzfs_spool -eq 0 ]; then
|
||||
$mv /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix} /var/lib/check_mk_agent/spool/
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user