How to Backup a Domain through SSH?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kenn
    Member
    • Aug 2008
    • 36

    How to Backup a Domain through SSH?

    1. Log into your server as root using SSH

    2. Change directory to the script directory by executing below command:

    cd /scripts

    3. Execute the CPanel script for the account backup by executing below command:

    ./pkgacct username

    4. The backup file will be taken inside the user's home directory.

    5. Now copy or move it to your backup drive.
    Last edited by admin; 08-14-2015, 07:35 AM.
  • edwardodfrazier
    Junior Member
    • Jan 2011
    • 4

    #2
    Re: How to Backup a Domain through SSH?

    Great Information , Can you explain How to Install Wordpress

    Comment

    • juniovid
      Junior Member
      • Sep 2022
      • 1

      #3
      1. Log in to your server via SSH, then navigate to your domain's directory: cd YOUR_DOMAIN.
      2. From your domain directory, create the backup of your database, mysqldump --opt --skip-lock-tables --routines --max_allowed_packet=2G -u USERNAME -p DATABASE | gzip > database-backup-$(date +%F).sql.gz.

      Comment

      Working...
      X