Scheduling project database backups with the backup utility
You can use Cron (Unix) or Task Scheduler (Windows) to schedule recurring Perforce ALM project database backups using the native database backup utility.
On this page:
Cron (Unix)
1. Enter crontab -e.
2. Enter the following command:
minute hour day month dow user BackupUtilityPath [-f] SourceProject DestinationZipFile
| Option | Description |
|---|---|
| minute | Minute when the backup should run. Valid values are 0 - 59. |
| hour | Hour of the day when the backup should run. Valid values are 0 - 23. |
| day | Day of the month when the backup should run. Valid values are 1 - 31 or an asterisk (*) for every day. |
| month | Month of the year the backup should run. Valid values are 1 - 12 or an asterisk (*) for every month. |
| dow | Day of the week when the backup should run. Valid values are 0 - 6 or an asterisk (*) for every day. Use 0 for Sunday. |
| user | Username required to run the command prompt. Specify the root user if scheduling a backup while the Perforce ALM Server is running. |
| BackupUtilityPath | Full path to the backup utility. |
| -f | Overwrite backup.zip if it exists. This option is not required, but it is recommended for recurring backups to ensure old backup files are replaced with new ones. |
| SourceProject | Full path to the ALM database directory to back up. |
| DestinationZipFile | Full path and file name for the .zip backup file. For example, C:\Backups\WysiCorpCompliance.zip. |
Task Scheduler (Windows)
Use the Windows Task Scheduler to create a task that starts the Perforce ALM Native Backup Command Line Utility on a specified schedule.
To overwrite old backup files for recurring backups, enter the -f argument in the task configuration.
See the Windows documentation for information.