Create the scheduled backup task
- Last UpdatedOct 02, 2024
- 1 minute read
Data Archive includes scripts for creating the task and performing the backups. The task backs up files and copies them to the scheduled backup directory. You can configure the backup directory's name and location and the backup time.
-
On the Data Archive computer, log in with a Windows account that has administrator privileges.
-
Open a command prompt window.
-
Change to the PI\adm directory.
For example, if Data Archive is installed on the D drive, you would type:
cd /d "%piserver%adm"
-
Select a target directory for your backups, for example e:\pibackup. Ideally, the backup drive is a separate drive from the system drive or the drive where your archives are stored.
pibackup e:\pibackup -install
This command creates a Windows Scheduled Task named PI Server Backup.
Use the backup tool of your choice to back up the pipc directory, which is not included in the Data Archive scheduled backup task. See Configure automatic backup of the Data Archive scheduled backup directory. If no backup tools are available, you can configure the Data Archive scheduled backup task to back up this directory. See Add the PIPC directory to the Data Archive daily backup task.