Backup Manager Plesk

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: 1c44bda10dedda3c088c3da0271c725d3e2ec53b

get-dump-content-list

Get dump content list by type. Available options –content-type, –dump-file-specification

/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’ {: .prompt-tip }

Get dump content list by type webcontent

/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.

/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

/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.id

Download a large backup file from Plesk type Domain

/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.id

pleskbackup

Backing Up Content and Configuration

/opt/psa/bin/pleskbackup --domains-name example.my.id

Keeps a backup in the Plesk server storage during backing up to an output file.

/opt/psa/bin/pleskbackup --domains-name example.my.id \ 
-output-file domain.tar  -keep-local-backup

pleskrestore

Restoration from Backup

/opt/psa/bin/pleskrestore --restore domain.tar -level domain

level clients, domains, resellers, server {: .prompt-tip }

Shows description of a backup file

/opt/psa/bin/pleskrestore -i domain.tar