The Deskpro OPC has a built in tool that allows you to schedule instance backups and run them manually. You can also manage the existing backups here and manually remove older ones that are no longer needed.
Any backups that were taken of instances in previous versions of the OPC will be moved to the new default directory of /opt/deskpro/data/opc/backups/INSTANCE
Attachments stored in S3 will not be backed up by the OPC. Please ensure you have a suitable strategy in place to perform attachment backups, if required.
In the OPC you have the Backups option in the left bar,

Clicking this will take you to the global configuration and backups overview page.
Global Backup Configuration
Here you can set what time the automatic daily backups run. Once you set the time required, click Save Settings to update the cron job with the new time.

By default the automatic backup only keeps the most recent file and will remove the older ones. If you want to change the retention, you will need to edit the file /etc/cron.d/opc-tasks
.
Please take a backup of the file before editing so if any issues are created when editing the file they can be reversed.
To set the number of days you will edit the line:
15 0 * * * root /opt/deskpro/opc-cli/opc backup --auto --keep 1 >/dev/null 2>&1 copy
Change the value after the --keep
flag to set the number of days you want to keep the daily backups, the default is 1.
Instance Backup Overview
Here you can see a list of all instances hosted on the OPC.

- Automatic Backups
This card shows you if the instances have automatic backups enabled. You can still run manual backups from within the instance page with automatic backups disabled.
- Backup Location
The file path to where the backups are stored, this can be specified in the instances backup configuraion.
- Last Backup
This shows you the date/time when a backup was last ran for the instance. This will show the last automatic or manual backup depending on which ran the most recently.
Please log in or register to submit a comment.