All CLI Commands
aptible backup_retention_policy:set
Getting Started
- Introduction to Aptible
- Deploy Starter Template
- Deploy your custom code
Core Concepts
- Apps
- Managed Databases
- Architecture
- Scaling
- Observability
- Security & Compliance
- Integrations
- Billing & Payments
Reference
- Pricing
- Aptible CLI
- Overview
- All CLI Commands
- aptible apps
- aptible apps:create
- aptible apps:deprovision
- aptible apps:rename
- aptible apps:scale
- aptible backup:list
- aptible backup:orphaned
- aptible backup:purge
- aptible backup:restore
- aptible backup_retention_policy
- aptible backup_retention_policy:set
- aptible config
- aptible config:add
- aptible config:get
- aptible config:rm
- aptible config:set
- aptible config:unset
- aptible db:backup
- aptible db:clone
- aptible db:create
- aptible db:deprovision
- aptible db:dump
- aptible db:execute
- aptible db:list
- aptible db:modify
- aptible db:reload
- aptible db:replicate
- aptible db:rename
- aptible db:restart
- aptible db:tunnel
- aptible db:url
- aptible db:versions
- aptible deploy
- aptible endpoints:database:create
- aptible endpoints:database:modify
- aptible endpoints:deprovision
- aptible endpoints:https:create
- aptible endpoints:https:modify
- aptible endpoints:list
- aptible endpoints:renew
- aptible endpoints:tcp:create
- aptible endpoints:tcp:modify
- aptible endpoints:tls:create
- aptible endpoints:tls:modify
- aptible endpoints:grpc:create
- aptible endpoints:grpc:modify
- aptible environment:ca_cert
- aptible environment:list
- aptible environment:rename
- aptible help
- aptible log_drain:create:datadog
- aptible log_drain:create:elasticsearch
- aptible log_drain:create:https
- aptible log_drain:create:logdna
- aptible log_drain:create:papertrail
- aptible log_drain:create:sumologic
- aptible log_drain:create:syslog
- aptible log_drain:deprovision
- aptible log_drain:list
- aptible login
- aptible logs
- aptible logs_from_archive
- aptible maintenance:apps
- aptible maintenance:dbs
- aptible metric_drain:create:datadog
- aptible metric_drain:create:influxdb
- aptible metric_drain:create:influxdb:custom
- aptible metric_drain:deprovision
- aptible metric_drain:list
- aptible operation:cancel
- aptible operation:follow
- aptible operation:logs
- aptible rebuild
- aptible restart
- aptible services
- aptible services:settings
- aptible services:autoscaling_policy
- aptible services:autoscaling_policy:set
- aptible ssh
- aptible version
- CLI Configurations
- Dashboard
- Terraform
- Metadata Variables
- Interface Feature Availability Matrix
- Glossary
All CLI Commands
aptible backup_retention_policy:set
This command changes the backup retention policy for an Environment. Only the specified attributes will be changed. The rest will reuse the current value.
Synopsis
Usage:
aptible backup_retention_policy:set [ENVIRONMENT_HANDLE] [--daily DAILY_BACKUPS] [--monthly MONTHLY_BACKUPS] [--yearly YEARLY_BACKUPS] [--make-copy|--no-make-copy] [--keep-final|--no-keep-final] [--force]
Options:
[--daily=N] # Number of daily backups to retain
[--monthly=N] # Number of monthly backups to retain
[--yearly=N] # Number of yearly backups to retain
[--make-copy], [--no-make-copy] # If backup copies should be created
[--keep-final], [--no-keep-final] # If final backups should be kept when databases are deprovisioned
[--force] # Do not prompt for confirmation if the new policy retains fewer backups than the current policy
Change the environment's backup retention policy
Was this page helpful?
On this page