We're updating the issue view to help you get more done. 

Adding auto_backup feature

Description

Hi, we are currently adding a feature of auto_backup into fifo, almost done:

  1. build it into fifo, including cerberus (add metadata management), sniffle (when updating metadata, notify the hypervisor), libchunter (add set_metadata message), chunter (all the heavy-lifting)

  2. don't want to change data storage, so we use metadata of VM, which is against your design of Metadata (by default, fifo ignores the metadata)

  3. currently metadata nesting is somehow buggy, so we only use metadata root key

  4. add a dep into chunter: erlcron, responsible for cron-like job management

  5. using simple text base rule for auto_bakcup, including auto_backup_snapshot, auto_backup_inc, auto_backup_full

  6. for auto_backup_snapshot & auto_backup_full, a max retaining-number rule is supported

Rule spec:
auto_backup_max_snap:how many snapshots are retained for a rule at most,default to 3
auto_backup_max_full:similar to above
auto_backup_snap_<name>:a rule for snapshot, user give it a name
auto_backup_full_<name>:similar to above
auto_backup_inc_<name>:similar to above

Schedule spec: (following the spec used by erlcron)
daily:{daily, <time>}
weekly:{weekly, <week>, <time>}
monthly:{monthly, <day>, <time>}
...

Environment

Status

Assignee

Heinz N. Gies

Reporter

刘振

Labels

None

Components

Fix versions

Affects versions

0.8.1

Priority

Medium