REALIZAR o RESTAURAR COPIA DE SEGURIDAD de un dominio EN PLESK 9.X.X con linea de comandos

/usr/local/psa/bin/pleskbackup server –output-file=ftp://storage01.soluciones.si//storage01/storage01/homes/host05/ –ftp-login=openfiler –ftp-password=xxxxxxxx

 

ESTE HACE BACKUP:

/usr/local/psa/bin/pleskbackup domains-name abajoabril.com –output-file=ftp://storage01.soluciones.si/lv01/vol01/vm03/plesk-host01/abajoabril –ftp-login=openfiler –ftp-password=s0luci0nesXXXX

ESTE RESTAURA:

/usr/local/psa/bin/pleskrestore –-restore ftp://storage01.soluciones.si/lv01/vol01/vm03/plesk-host01/abajoabril

/usr/local/psa/bin/pleskrestore –check-backup ftp://storage01.soluciones.si/lv01/vol01/vm03/plesk-host01/abajoabril

Realizar un backup de un dominio en el repositorio local:

/usr/local/psa/bin/pleskbackup domains-name midominio.com

/usr/local/psa/bin/pleskbackup domains-name abajoabril.com –output-file=ftp://ks203755.kimsufi.com:M54kD9Q52JK@ftpback-rbx4-80.ovh.net/

/usr/local/psa/bin/pleskbackup domains-name abajoabril.com –output-file=ftp://ftpback-rbx4-80.ovh.net –ftp-login=ks203755.kimsufi.com –ftp-password=M54kD9Q52JK

plesk-9.0-backup-cli-guide

Restaurar clientes en Plesk:
/usr/local/psa/bin/pleskrestore –restore /var/lib/psa/dumps/clients/xxxxxx/xxxxxx_info_xxxxxxxxxx.xml -level clients -debug

Restaurar dominios en Plesk:
/usr/local/psa/bin/pleskrestore –restore /var/lib/psa/dumps/domains/xxxxxxxxxx.com/copia_xxxxxxxxxx.com_info_xxxxxxxxxx.xml -level domains -debug

BACKUP

/usr/local/psa/bin/pleskbackup -v domains domainname.com backupfilename

RESTORE

CREATING MAPFILE

/usr/local/psa/bin/pleskrestore –create-map backupfilename -map yourmapfilename

yourmapfilename = any name

To restore an domain edit the map

vi yourmapfilename
the map file would be like this

yourdomainname.com 11.22.33.44 # IP address
mysql::@localhost:3306

comment the unwanted domain and save the file

Restoring the domain form mapfile

/usr/local/psa/bin/pleskrestore –restore backupfilename -level domains -map yourmapfilename

This will restore the complete domain