The backup service creates regular backups of your Liferay DXP database and Document Library. Here, you'll find all the details you'll need to configure the backup service to suit your needs.
Use the following environment variables in your
wedeploy.json file to achieve your data redundancy goals.
||Create backup schedule.|
||The Liferay folder to be backed up.|
||ID of the RDS database service.|
||Number of days to retain your backups. Note that the maximum retention period for backups is 30 days, even if you set this to a longer period of time.|
||The cleanup schedule for backups outside the retention period.|
You can customize the backup service's scheduling via Cron scheduling syntax. This scheduling can be used for the following variables:
Customizing Scheduling (id=customizing-scheduling)
* * * * * ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ │ │ │ │ └ day of week (0 - 7) (0 or 7 is Sun) │ │ │ └───── month (1 - 12) │ │ └────────── day of month (1 - 31) │ └─────────────── hour (0 - 23) └──────────────────── minute (0 - 59)
Use this syntax to create a customized schedule. For example, the following runs a backup every 12 hours (12AM and 12PM):
0 0,12 * * *
Scheduling Syntax Shorthand
Use the following shorthand syntax for common use cases:
@yearly: Run at the start of every year.
@monthly: Run at the start of every month.
@weekly: Run at the start of every week.
@daily: Run at the start of every day.
@hourly: Run at the start of every hour.