Sie befinden sich hier: Technik / Strato / Plesk Panel / Backup
Deutsch
English
Mittwoch, 26.09.2018

Der Plesk Backup-Befehl kann von der Kommandozeile aufgerufen werden, z.B. für ein Server-Backup:

/usr/local/psa/bin/pleskbackup --server --output-file=ftp://backup.serverkompetenz.de/Backup_Server --ftp-login=[Benutzer] --ftp-password=[Passwort]

Für eine einzelne Domain kann der folgende Befehl abgesetzt werden:

/usr/local/psa/bin/pleskbackup --domains-name [Domain] --output-file=ftp://[Benutzer]:[Passwort]@backup.serverkompetenz.de/Backup_Domains/[Domain]/[Domain].tar

Jeweils die richtigen Angaben für Benutzer und Passwort machen!

Die so auf den ftp-Backup-Server gesicherten Daten sind leider nicht über das grafische Frontend von Plesk erreichbar. Zum Wiederherstellen muss man folgendermaßen vorgehen:

Die Sicherungsdatei [Domain].tar wird vom ftp-Backup-Server auf den Rootserver kopiert.

Dort kann die Datei dann im richtigen Verzeichnis ausgepackt werden. Für eine Domain wäre das z.B. das Verzeichnis /var/lib/psa/dumps/resellers/[Reseller]/clients/[Kunde]/domains/[Domain].de. Dort entpackt man das tar-Archiv mit

tar -xvf [Domain].tar

Danach ist das Backup auch in der Backup-Auswahl Server-Repository für die Domain zu sehen und kann über das grafische Backend von Plesk wiederhergestellt werden (bisher noch ungetestet!).

Alle Daten, welche man mit dem grafischen Frontend von Plesk auf dem Server sichert, landen im Verzeichnis /var/lib/psa/dumps/.

Folgende Optionen hält pleskbackup zur Verfügung:

Usage: pleskbackup  <command> [<options>] <arguments>

Commands:

server Backs up whole Plesk.

resellers-name Backs up selected resellers. Reseller's logins are read from command line,
space-separated. If no resellers provided, backs up all resellers
on the host.

resellers-id Backs up selected resellers. Reseller's identificators are read from command line,
space-separated. If no resellers provided, backs up all resellers
on the host.

clients-name Backs up selected clients. Client's logins are read from command line,
space-separated. If no clients provided, backs up all clients
on the host.

clients-id Backs up selected clients. Client's identificators are read from command line,
space-separated. If no clients provided, backs up all clients
on the host.

domains-name Backs up selected domains. Domain's names are read from command line,
space-separated. If no domains provided, backs up all domains
on the host.

domains-id Backs up selected domains. Domain's identificators are read from command line,
space-separated. If no domains provided, backs up all domains
on the host.

Use Exclude options to exclude some resellers/clients/domains.

help Shows this help page

General options:

-f|--from-file=<file>
Read list of domains/clients/resellers from file, not from command line.
File should contain list of domains/clients/resellers one per line.

-v|--verbose
Show more information about backup process. Multiple -v
options increase verbosity.

-s|--split[=<size>]
Split the generated backups to the parts. Parts are numbered
by appending NNN suffixes.

Size may be specified in kilobytes (<nn>K), megabytes (<nn>M)
and gigabytes (<nn>G). By default in bytes.

'-s' option without argument selects default split size:
2 gigabytes.

-z|--no-gzip Do not compress content files

-c|--configuration
Backup only configuration of objects, not the content.

--only-mail
Backup only mail configuration and content of selected objects.
--only-hosting
Backup only hosting configuration and content of selected objects.
--suspend
Suspend domains during backup operation.

--skip-logs Do not save log files in the backup file

--prefix=<prefix>
Backup file name prefix. Used to customize backup file name ( default is 'backup' ).

-d|--description=<description>
Add description to the dump

FTP options:

--ftp-login=<ftp_login>
Specify the FTP login
--ftp-password=<ftp_password>
Specify the FTP password (used with '--ftp-login')
--ftp-passive-mode
Use FTP passive mode

Exclude options:

--exclude-reseller=<obj1>,<obj2>,...
Exclude resellers from backup list.
Reseller's logins are read from command line, comma-separated.
If no resellers provided, resellers are not backuped

--exclude-reseller-file=<file>
Exclude resellers listed in file from backup list.
File should contain list of reseller's logins one per line.

--exclude-client=<obj1>,<obj2>,...
Exclude clients from backup list.
Client's logins are read from command line, comma-separated.
If no clients provided, clients are not backuped

--exclude-client-file=<file>
Excludes clients listed in file from backup list.
File should contain list of client's logins one per line.

--exclude-domain=<obj1>,<obj2>,...
Exclude domains from backup list.
Domain's names are read from command line, comma-separated.
If no domains provided, domains are not backuped

--exclude-domain-file=<file>
Exclude domains listed in file from backup list.
File should contain list of domain's names one per line.


Output file option:
--output-file=<output_file>
/fullpath/filename - regular file,
- - use stdout for output,

ftp://[<login>[:<password>]@]<server>/<filepath> - storing the backup to ftp server.
FTP_PASSWORD environment variable can be used for setting password.
FTP option '--ftp-login' can be used for setting login.
FTP option '--ftp-password' (with '--ftp-login') can be used for setting password.

Used to import dump from repository into the single file.