|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
25-11-2013, 03:55 PM | #1 |
Guest
Trả Lời: n/a
|
hướng dẫn backup/restore a Parallels Virtual Machine on PCS
How to backup/restore a Parallels Virtual Machine?
There are three possible scenarios for storing backups:
Backup and restore locally The following command is used to back up a virtual server locally: # prlctl backup <vm_id|vm_name> (where vm_id is the virtual machine identifier and vm_name is the virtual machine name) Example: # prlctl backup {248e9848-2169-4aa6-bfbf-c53c3db5c752} # prlctl backup 'Test Server' To list existing backups of a given VM, the following command should be used: # prlctl backup-list <vm_id|vm_name> Example: # prlctl backup-list 'Test Server' To restore a VM from a backup, the below given command is used: # prlctl restore {<vm_id> | -t,--tag <backup_id>} If backup_ID is not specified, the latest backup version will be restored. Example: # prlctl restore {72a28a66-dac9-4e0a-9202-78301fad1e2e} -t {3e547fd5-4c4d-4a76-8b5d-8b7b3182df55} # prlctl restore {72a28a66-dac9-4e0a-9202-78301fad1e2e} Backup and restore using remote Parallels Server Storing backups of VMs on a different Parallels Server rather than locally makes the backup/restore scheme more reliable and unaffected by disk failure on the server where the VMs are hosted. The following command and options can be used to back up a virtual machine to a remote Parallels Server: # prlctl backup <vm_id|vm_name> [-s,--storage <user:passwd]@server[:port]>] (where vm_id is the virtual machine identifier and and vm_name is the virtual machine name; -s,--storage is an option pointing to the remote server IP and login details) Example: # prlctl backup 'Test Server' -s root:password@192.168.1.2:/var/parallels/backups To list existing backups of a given VM, use the following command: # prlctl backup-list <vm_id|vm_name> [-s,--storage <user:passwd]@server[:port]>] Example: # prlctl backup-list 'Test Server' -s root:password@192.168.1.2 To restore a VM from a backup, the below given command is used: # prlctl restore [<vm_id> | -t,--tag <backup_id>] [-s,--storage <user:passwd]@server[:port]>] If backup_ID is not specified, the latest backup version will be restored. Example: # prlctl restore {248e9848-2169-4aa6-bfbf-c53c3db5c752} -s root:password@192.168.1.2 Backup and restore using network share Storing backups of VMs on a network share allows you to use remote backup storage as local. To achieve that, the network share is mounted to the /var/parallels/backups folder on Parallels Server and VMs are backed up in exactly the same way as they would be locally. Below are examples of commands for mounting NFS and SMB shares to the /var/parallels/backups folder: NFS shares are mounted on Parallels Server using the mount command. The format of the command is as follows: # mount -t <nfs-type> -o <options> <host>:</remote/export> /var/parallels/backups Example: # mount -t NFSv3 192.168.1.2:/remote/share1 /var/parallels/backups To mount a Samba share to the backups directory, execute the following command as root: # mount -t cifs //<servername>/<sharename> /var/parallels/backups -o <username>,<password> Example: # mount -t cifs //192.168.1.2/share1 /var/parallels/backups -o administrator,password http://kb.parallels.com/en/6322 |
|
|