Run an archive or purge job automatically
- Last UpdatedOct 28, 2024
- 2 minute read
You can schedule an archive or purge job using the Windows Task Scheduler on the APR server. This allows the archive or purge job to run automatically at a pre-determined time or on a regular basis, such as daily, monthly, and so on.
Restore jobs cannot be run automatically. They must be run manually.
You must configure the scheduled job on the same computer as the APR server using the Windows Task Scheduler.
The proxy must be configured to send requests to this service in order for the command line program to send its requests.
Run an archive or purge job automatically
-
On the Database Maintenance Service computer, open the Task Scheduler for Windows from the Control Panel.
-
Double-click Add Schedule Task.
The Schedule Task Wizard appears.
-
Click Next, and then click the APRSchedule.exe to run from Windows.
-
Click Next, and then specify the option to run this task:
If you want to run this task at a particular date and time, only then select One time only.
If you want to run this task at a recurring date and time, click any one of the following:
-
Daily
-
Weekly (and specify the day of week and time)
-
Monthly (and specify the date of month and time)
-
-
Click Next.
-
In the User Name box, type your user name.
-
In the Password box, type your password to configure the task.
-
Click Next
-
Select the Open advanced properties for this task when I click Finish check box.
-
Click Finish.
The Advance Options dialog box appears.
-
Type the Job ID as a command line parameter.
-
Save and close all the windows.
The job is scheduled to run.
You can manually remove any of the scheduled tasks that are not required.