Panduan ini akan berisi beberapa cara untuk mengelola backup akun hosting pada backup manager dari yang biasa dilakukan di web admin Plesk ke cara singkat melalui SSH atau CLI.
Versi panel Plesk yang digunakan untuk panduan ini adalah 18.0.52.2. Mungkin akan ada sedikit perbedaan pada path binary jika menggunakan versi Plesk lama.
# plesk version
Product version: Plesk Obsidian 18.0.52.2
OS version: Ubuntu 22.04 x86_64
Build date: 2023/05/02 13:00
Revision: 1c44bda10dedda3c088c3da0271c725d3e2ec53bget-dump-content-list
Get dump content list by type. Available options –content-type, –dump-file-specification
1
2
3
/opt/psa/admin/bin/pmm-ras --get-dump-content-list \
--dump-file-specification=/var/lib/psa/dumps/backup_info_2305071430.xml \
--content-type object
content type ‘mailbox’, ‘maillist’, ‘database’, ‘webcontent’, ‘site’, ‘dnszone’, ‘certificate’, ‘subscription’, ‘customer’, ‘reseller’ or ‘object’
Get dump content list by type webcontent
1
2
3
/opt/psa/admin/bin/pmm-ras --get-dump-content-list \
--dump-file-specification=/var/lib/psa/dumps/domains/example.com/backup_info_2305071430.xml \
--content-type webcontent
import-file-as-dump
Import dump to file. Available options –dump-file-specification, –dump-storage, –allow-reset-passwords, –owner-type, –owner-guid, -$ type, –guid, –name, –import-base.
1
2
/opt/psa/admin/bin/pmm-ras --import-file-as-dump \
--dump-file-specification /path/to/file.xml.tar
export-dump-as-file
Download a large backup file from Plesk type Server
1
2
3
/opt/psa/admin/bin/pmm-ras --export-dump-as-file \
--dump-specification=backup_info_2305071430.xml \
--dump-file-specification=/root/server.tar
Verify
# /opt/psa/bin/pleskrestore -i server.tar
------------------------------------------------------------------------
Backup information
Dump version: 18.0.52
File: /var/lib/psa/dumps/backup_info_2305071430.xml
Type: Server
Comment: All configuration and content
Date: 2305071430
Size: 136 M
------------------------------------------------------------------------
[Domain-info] example.my.id
[Domain-info] example.co.idDownload a large backup file from Plesk type Domain
1
2
3
/opt/psa/admin/bin/pmm-ras --export-dump-as-file \
--dump-specification=domains/example.my.id/backup_info_2305071430.xml \
--dump-file-specification=/root/domain.tar
Verify
# /opt/psa/bin/pleskrestore -i domain.tar
------------------------------------------------------------------------
Backup information
Dump version: 18.0.52
File: /var/lib/psa/dumps/domains/example.my.id/backup_info_2305071430.xml
Type: Domain
Comment: All configuration and content
Date: 2305071430
Size: 19.9 M
------------------------------------------------------------------------
[Domain] example.my.idpleskbackup
Backing Up Content and Configuration
1
/opt/psa/bin/pleskbackup --domains-name example.my.id
Keeps a backup in the Plesk server storage during backing up to an output file.
1
2
/opt/psa/bin/pleskbackup --domains-name example.my.id \
-output-file domain.tar -keep-local-backup
pleskrestore
Restoration from Backup
1
/opt/psa/bin/pleskrestore --restore domain.tar -level domain
level clients, domains, resellers, server
Shows description of a backup file
1
/opt/psa/bin/pleskrestore -i domain.tar