Use the qptool archive
command to copy place directories and their contents to a specified archive directory.
About this task
Use the archive command when you want to:
- Back up active places by archiving them to a target directory without deleting them from the server.
- Back up active places before moving them to another server.
- Back up inactive places before removing them from the server.
To archive places, enter the following command from the server console:
load qptool archive arguments
are described in Table 1 .
Table 1. Arguments for qptool archive
|-?||Prints help on the command.|
|-dir path directory ||Directory in which to archive places. If you specify an archive directory without an explicit path, the specified archive directory is put in the server data directory. If the specified directory does not already exist, it is created.|
Note: The archive command does not archive a place that already exists in the archive directory.
|-a ||Archive all places.|
|-p place(s) ||Specifies a place or a space-separated list of places to archive.|
|-i inputfilename ||XML input file located in the server program directory that specifies the places to archive.|
|-o outputfilename ||XML output file that logs the results of the command. By default the command logs results to qptool.archive.xml in the server program directory.|
Table 2 provides examples of using the archive command.
Table 2. Examples of qptool archive
|Back up all places on the server|
load qptool archive -dir x:\qpbackup -a
|Archive more than one place to a target directory below c:\|
load qptool archive -dir c:\threeplaces -p placeone placetwo placethree
|Archive places specified in an XML input file to a directory below c:\|
load qptool archive -i qptool.archive.xml -dir c:\threeplaces
|Archive a place to a directory below c:\ and log output to a non-default XML file location.|
load qptool archive -p placename -dir c:\placenameback -o c:\qptool.archive.xml
Parent topic: Managing places using My Places and qptool commands