![](https://secure.gravatar.com/avatar/e99b896dc850fad9bda60656f9786324.jpg?s=120&d=mm&r=g)
13 Mar
2016
13 Mar
'16
10:57 p.m.
Hi all, I spent my Sunday afternoon (on-call, luckily quiet though :) writing this backup script for Observium.
It takes a backup destination directory and number of backups to keep using rotation which is 0 by default. Then it makes a tmp directory. It copies config.php there, does a mysql dump, and copies rrd/ into the tmp directory. It tars up the tmp directory into a tarball in the backup directory and deletes the tmp directory.
It is meant to run from the scripts/ directory, it maybe isnt as polished as the other main scripts or compatible with all systems because of different options with the commands it runs. Its working for me though on my Ubuntu 14.04 test system. Please offer suggestions! Thanks. -Nick