fix(backup): remove unsupported --storage-class COLD for Timeweb S3
Timeweb S3 doesn't support per-object storage class via API parameter. Cold storage is configured at bucket level in Timeweb control panel. Also: make S3 upload failures explicit (exit 1) instead of silently ignored. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1e638055c8
commit
ebac7d807e
1 changed files with 1 additions and 2 deletions
|
|
@ -117,10 +117,9 @@ AWS_ACCESS_KEY_ID="{{ s3_access_key }}" \
|
||||||
AWS_SECRET_ACCESS_KEY="{{ s3_secret_key }}" \
|
AWS_SECRET_ACCESS_KEY="{{ s3_secret_key }}" \
|
||||||
aws s3 cp "${ARCHIVE}" "s3://{{ s3_bucket }}/data/$(basename "${ARCHIVE}")" \
|
aws s3 cp "${ARCHIVE}" "s3://{{ s3_bucket }}/data/$(basename "${ARCHIVE}")" \
|
||||||
--endpoint-url "{{ s3_endpoint }}" \
|
--endpoint-url "{{ s3_endpoint }}" \
|
||||||
--storage-class COLD \
|
|
||||||
--no-progress \
|
--no-progress \
|
||||||
&& log " → S3 upload complete" \
|
&& log " → S3 upload complete" \
|
||||||
|| log " ⚠ S3 upload failed (local backup still intact)"
|
|| { log " ⚠ S3 upload FAILED"; exit 1; }
|
||||||
|
|
||||||
# ── Cleanup old local backups ─────────────────────────────────────────────────
|
# ── Cleanup old local backups ─────────────────────────────────────────────────
|
||||||
log "Removing local backups older than ${KEEP_DAYS} days..."
|
log "Removing local backups older than ${KEEP_DAYS} days..."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue