磁盘快照

开启快照

IaaS必须要支持快照。

properties:
  director:
    enable_snapshots: true

run bosh deploy to update your deployment。

手动创建快照

$bosh snapshts

if you need to find specific snapshots to recover.

$ bosh take snapshot [JOB] [INDEX]
$ bosh delete snapshot SNAPSHOT-CID
$ bosh delete snapshots    #delete all snapshots

任务更新快照

Once you enable snapshots in the Director, the Director automatically takes a snapshot of the persistent disk whenever an event triggers a deployment job update. Before taking the snapshot, the Director waits for release job processes to stop (and/or drain).

定期更新快照

To schedule snapshots for all VMs in all deployments:

Add a snapshot_schedule key to the director block of your deployment manifest.

Add a cron-formatted schedule as a value for the snapshot_schedule key.

properties:
  director:
    enable_snapshots: true
    snapshot_schedule: 0 0 7 * * * UTC

Run bosh deploy to update your deployment.

To schedule snapshots for the Director VM:

Add a self_snapshot_schedule key to the director block of your deployment manifest.

Add a cron-formatted schedule as a value for the self_snapshot_schedule key.

properties:
  director:
    enable_snapshots: true
    self_snapshot_schedule: 0 0 6 * * * UTC

Run bosh deploy to update your deployment.

results matching ""

    No results matching ""