Using pctl backup and pctl restore
This section describes how to perform the basic backup-related operations using the
Creating a Virtual Machine and Container Backup
You can use the
# pctl backup MyVM Backing up the VM MyVM Operation progress 100%
The virtual machine has been successfully backed up with backup ID {
The command output informs you that the virtual machine backup has been successfully created and assigned ID
At the same time, you can run the following command to back up the
# pctl backup MyVM -s root:1qaz2wsx@129.129.10.10
All newly created backups are placed to the directory specified as the value of the
Notes : 1. A Backup Server can be any server running the Parallels Server Bare Metal software and having sufficient space for storing virtual machine and Container backups.
2. For more information on the options you can pass to
Listing the Existing Backups
You can use the
# pctl backup-list ID Backup_ID Node Date Type Size {c1dee22f-8667-4870-9e11-278f1398eab0} {209d54a0-e3b8-4a03-9ca8-d4cc7a2a27ca} test.com 2009-06-30 10:19:32 f 411566405 This command lists the backups existing on the Source Server. If you want to list the backups on the Backup Server, you need to specify the IP address of this server.
The command output shows that currently only two backups exist on the Source Server. These backups were created for a virtual machine and Container with the ID of
Removing a Virtual Machine and Container Backup
At any time, you can remove a backup that you do not need any more using the
# pctl backup-list ID Backup_ID Node Date Type Size {c1dee22f-8667-4870-9e11-278f1398eab0} {209d54a0-e3b8-4a03-9ca8-d4cc7a2a27ca} test.com 2009-06-30 10:19:32 f 411566405 # pctl backup-delete c1dee22f-8667-4870-9e11-278f1398eab0 -t 209d54a0-e3b8-4a03-9ca8-d4cc7a2a27ca Delete the VM backup The VM backup has been successfully removed. You can also specify the virtual machine and Container name instead of its ID: # pctl backup-delete MyVM -t 209d54a0-e3b8-4a03-9ca8-d4cc7a2a27ca If you have several backups of a particular virtual machine and Container and want to delete them all at once, indicate only the virtual machine and Container name or ID: # pctl backup-delete MyVM
This command removes all backups of the
# pctl backup-delete MyVM -s root:1qaz2wsx@129.129.10.10 Restore a Virtual Machine and Container
To restore a backup of a virtual machine and Container, you can use the
# pctl restore MyVM -s root:1qaz2wsx@10.10.100.1
If you have two or more backups of the
# pctl backup-list -s root:1qaz2wsx@10.10.100.1 ID Backup_ID Node Date Type Size {c1dee22f-8667-4870-9e11-278f1398eab0} {209d54a0-e3b8-4a03-9ca8-d4cc7a2a27ca} test.com 2009-06-30 10:19:32 i 11566405 {c1dee22f-8667-4870-9e11-278f1398eab0} {24a3011c-092e-4f21-bb3b-29ccfe967e92} test.com 2009-05-21 11:12:35 f 356798701
You can now indicate the desired ID after the
# pctl restore -t {c1dee22f-8667-4870-9e11-278f1398eab0} -s root:1qaz2wsx@10.10.100.1 |
||||||||||||||||||
|