repos binds both buckets in one r2_buckets list (the merge left two keys, and the second would have won)
1 file+7−50/1 viewed
| 37 | 37 | // unfinished uploads after 1: | |
| 38 | 38 | // npx wrangler r2 bucket create g1t-git-packs | |
| 39 | 39 | // npx wrangler r2 bucket lifecycle add g1t-git-packs expire-packs packs/ --expire-days 7 --abort-multipart-days 1 | |
| 40 | − | "r2_buckets": [{ "binding": "GIT_PACKS", "bucket_name": "g1t-git-packs" }], | |
| 40 | + | // Nightly backups go to the second bucket: a git bundle per repository | |
| 41 | + | // and a manifest of each chain (src/backups.rs). Made by | |
| 42 | + | // `npx wrangler r2 bucket create g1t-backups`. | |
| 43 | + | "r2_buckets": [ | |
| 44 | + | { "binding": "GIT_PACKS", "bucket_name": "g1t-git-packs" }, | |
| 45 | + | { "binding": "BACKUPS", "bucket_name": "g1t-backups" } | |
| 46 | + | ], | |
| 41 | 47 | "services": [ | |
| 42 | 48 | { "binding": "IDENTITY", "service": "g1t-identity" }, | |
| 43 | 49 | { "binding": "EVENTS", "service": "g1t-events" }, | |
| 95 | 101 | // their last backup are queued for one (src/backups.rs, BACKUP_CRON); | |
| 96 | 102 | // the runner's sweep starts them a few at a time. | |
| 97 | 103 | "triggers": { "crons": ["23 * * * *", "53 2 * * *"] }, | |
| 98 | − | // Nightly backups: a git bundle per repository and a manifest of each | |
| 99 | − | // chain (src/backups.rs). Made by | |
| 100 | − | // `npx wrangler r2 bucket create g1t-backups`. | |
| 101 | − | "r2_buckets": [{ "binding": "BACKUPS", "bucket_name": "g1t-backups" }], | |
| 102 | 104 | // A workspace renamed moves its repositories to the new slug; one | |
| 103 | 105 | // deleted purges the repositories it left in Recently deleted. | |
| 104 | 106 | "queues": { |