Ceph monitor backup script

Don't just copy the /var/lib/ceph directory because you cant be sure of the state of the database files.

Original article

1service ceph stop mon
2tar czf /var/backups/ceph-mon-backup_$(date +'%a').tar.gz /var/lib/ceph/mon
3service ceph start mon