Last active
June 25, 2024 01:30
Revisions
-
TuningYourCode revised this gist
Feb 7, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ $ip_old_munin_server = '192.168.0.200' mkdir -p /backup/old for filename in /var/lib/munin/*/*/*.rrd; do if [ ! -f "/backup/old/$(basename "$filename")" ]; then -
TuningYourCode created this gist
Feb 7, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/bin/bash $ip_old_munin_server = '192.168.0.200' mkdir /backup/old for filename in /var/lib/munin/*/*/*.rrd; do if [ ! -f "/backup/old/$(basename "$filename")" ]; then echo $filename ssh $ip_old_munin_server "rrdtool dump $filename" | rrdtool restore - "/backup/old/$(basename "$filename")" mv $filename "${filename}_before" python simple-rrd-merge.py "/backup/old/$(basename "$filename")" "${filename}_before" | rrdtool restore /dev/stdin $filename chown munin:munin $filename fi done