diff --git a/Cloud-Tier.md b/Cloud-Tier.md index 3af6c73..c078146 100644 --- a/Cloud-Tier.md +++ b/Cloud-Tier.md @@ -68,6 +68,20 @@ volume.tier.upload -dest=s3.name2 -collection=benchmark -volumeId=37 ``` +## Automated Tiering +In `master.toml` generated by `weed scaffold -config=master`, you can adjust the `master.maintenance` script section: +``` +[master.maintenance] +# periodically run these scripts are the same as running them from 'weed shell' +scripts = """ + lock + volume.tier.upload -dest s3 -fullPercent=95 -quietFor=1h + ... + unlock +""" +``` - - +Or you can run the `weed shell` periodically in some cron job: +``` +echo "lock;volume.tier.upload -dest s3 -fullPercent=95 -quietFor=1h;unlock" | weed shell +``` \ No newline at end of file