How to Configure Backup in cPanel

 Go to the "Files" block, click on the "Backup" icon.



Note: You can restore only partial backups you've previously made. Full backups wil be restored by technical support

Now choose a necessary backup and create or restore it




Automatic remote backup service

You can use cPanel's Cron Job feature to run automatic backup. To create a Cron Job, you would first log in to your cPanel under "Advanced" select "Cron Jobs".



You can also specify an email address that the Cron daemon will send the job's results to.



Pay attention to time fields: Specify when the cron job will run. Suppose, you need it run once a day. We recommend to run Cron at night as the general load of the server is reduced.

Suppose you need to run a script every morning at 2:00 AM.

Choose

Minute - 00

Hour - 02



In the command tab you need to give the command according to the task:

Database Backup

mysqldump --opt -u user -p password  database >/path/to/backup/filename.sql 

to restore all databases write --all-databases instead of the database name:


mysqldump --opt -u user -p password --all-databases  >/path/to/backup/filename.sql

If you need save them as gzip:
mysqldump --opt -u user -p password --all-databases | gzip -c -9>/path/to/backup/filename.gz

Site Backup

tar -czf /path/to/backup/filename.tar.gz /path/to/site
 

War diese Antwort hilfreich?

 Artikel drucken

Lesen Sie auch

Ich habe mein Hosting registriert und habe bereits meine Domain. Was kann ich tun damit meine Webseite funktioniert.

Damit alles richtig funktioniert, müssen Sie unsere DNS Server für den Domainnamen einrichten:...

Wie erstellt man einen FTP-Account?

Der FTP-Hauptaccount wird automatisch erstellt, wenn Sie Ihr Hosting registrieren. Nach dem...

Wie erstelle ich einn Subdomain?

Loggen Sie sich in das cPanel, in den Bereich “Domains”=>”Subdomains” ein. Aus dem Verzeichnis...

Was ist .htaccess?

htaccess ist eine Server-Konfigurationsdatei. Wenn Sie in dem Root-Verzeichnis eine .htaccess...

Shell-Zugang mit SSH zu dem Hosting?

Alle Sherlockhost Tarifpläne verfügen über einen Shellzugang mit SSH. In dem cPanel müssen Sie...