Skip to content

Instantly share code, notes, and snippets.



Last active Feb 7, 2018
What would you like to do?
munin rrd merge history
$ip_old_munin_server = ''
mkdir -p /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 "/backup/old/$(basename "$filename")" "${filename}_before" | rrdtool restore /dev/stdin $filename
chown munin:munin $filename

This comment has been minimized.

Copy link
Owner Author

@TuningYourCode TuningYourCode commented Feb 7, 2018

uses the following python script:

script is only for quick&dirty migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment