miyagi-backup.sh aktualisiert
add scrub stop src und scrub stop local
This commit is contained in:
+15
-3
@@ -121,13 +121,24 @@ run_maintenance() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run_scrub_stop() {
|
run_scrub_stop_src() {
|
||||||
ssh root@"$SOURCEHOST" 'for pool in $(zpool list -H -o name); do
|
ssh root@"$SOURCEHOST" 'for pool in $(zpool list -H -o name); do
|
||||||
echo "Stoppe Scrub auf Pool: $pool"
|
echo "⏹️ Stoppe Scrub auf Pool: $pool"
|
||||||
zpool scrub -s "$pool"
|
zpool scrub -s "$pool"
|
||||||
done'
|
done'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_scrub_stop_local() {
|
||||||
|
for pool in $(zpool list -H -o name); do
|
||||||
|
echo "⏹️ Stoppe Scrub auf Pool: $pool"
|
||||||
|
if zpool scrub -s "$pool"; then
|
||||||
|
echo "✔️ Scrub auf $pool gestoppt"
|
||||||
|
else
|
||||||
|
echo "❌ Fehler beim Stoppen des Scrubs auf $pool"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
shutdown_if_requested() {
|
shutdown_if_requested() {
|
||||||
if [[ "$SHUTDOWN" == "yes" ]]; then
|
if [[ "$SHUTDOWN" == "yes" ]]; then
|
||||||
send_piggyback_data
|
send_piggyback_data
|
||||||
@@ -147,7 +158,8 @@ main() {
|
|||||||
run_zsync
|
run_zsync
|
||||||
run_updates
|
run_updates
|
||||||
run_maintenance
|
run_maintenance
|
||||||
run_scrub_stop
|
run_scrub_stop_local
|
||||||
|
run_scrub_stop_src
|
||||||
run_pbs_backup
|
run_pbs_backup
|
||||||
run_remote_updates
|
run_remote_updates
|
||||||
shutdown_if_requested
|
shutdown_if_requested
|
||||||
|
|||||||
Reference in New Issue
Block a user