Skip to content

Simple automated rbd snapshot creating with housekeeping

License

Notifications You must be signed in to change notification settings

oposs/rbd_snapshot_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RBD Snapshot Manager

This script intends to fill the gap between a simple snapshot schedule and automated mirroring. It offers a simple housekeeping feature by keeping a configurable number of snapshots. Moreover, its concurrent-ready(TM) by exclusively "locking" a pool/image combination (we take advantage of ceph's general purpose key/value store).

Usage example:


# edit crontab for user root
crontab -e

# add daily snapshots and keep 10
0 22 * * * /usr/bin/python3 /path/to/rbd_snapshot.py --pool rdb-pool1 --image test-image --suffix DAILY --n_keep 10

About

Simple automated rbd snapshot creating with housekeeping

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages