How to take backup via SSH?

Making a regular backup of your personal data is a very good practice to ensure your website is protected if something goes wrong. There are several ways to back up the data. One of them is to use Secure Shell (SSH). Silicon House provides the SSH access in the cloud (or) Dedicated Server. Kindly follow the below procedure :

To Login to the server via SSH:


1.You can download the putty software

2.After installing it, Launch putty and enter the details.


Host name (or IP address) : Give the server IP Port : Give the port number

Click on open
1.Log-in to the SSH as Root user.


2.Enter the following command string on the command
/scripts/pkgacct username

Important note : The backup will be stored in the home directory.

3. In order to save the cpmove archive in the particular directory or path instead of home directory. You can use the following command.
/scripts/pkgacct username $destination.

4. In order to take the particular folder backup kindly follow the below procedure :

(i)Navigate to the directory you would like to back up:

(ii)Go to the particular path where you need to take backup.

(iii)tar -vcf mybackup.tar.gz . (do not forget about ‘.’ at the end): 

(iv)Once the process is completed, you will have a single .tar.gz archive with the necessary files inside. The backup file will be created in the same directory you have previously navigated to: 
You can extract using the command tar xf fileName.tar.gz