fix: apply OCI lifecycle policy noninteractively
This commit is contained in:
parent
98fbaa250c
commit
3c39b4cee6
|
|
@ -29,5 +29,5 @@ cat >"${policy}" <<JSON
|
|||
JSON
|
||||
"${oci_bin}" os object-lifecycle-policy put --config-file "${config}" --profile "${profile}" \
|
||||
--region "${region}" --namespace-name "${namespace}" --bucket-name "${bucket}" \
|
||||
--items "file://${policy}" >/dev/null
|
||||
--items "file://${policy}" --force >/dev/null
|
||||
echo "OCI lifecycle policy applied: delete backup objects older than 30 days."
|
||||
|
|
|
|||
Loading…
Reference in New Issue