You can take a manual backup of an environment using the CLI or in the Console. This will create a restorable snapshot of your product code and data that you can use in the future.
To create a backup of your environment:
platform backup:create
- Navigate to the environment you want to back up.
- Click Backups.
- Click Backup.
You can also automate the process of creating manual backups through cron jobs. The cron job uses the CLI command to back up the environment. It requires you to set up the CLI on the environment with an API token.
Although this process is automated, backups created in this way count as manual for the backup schedule. They don’t affect the automated backups taken as part of the schedule.
Live backups
You can create backups without any downtime. This means your environment is running and open to connections during the backup.
Use the --live
flag:
platform backup:create --live