Categories: Blogs

BackUp Through Rsync

Rsync (Remote Sync) is a most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix systems.

To take a backup of any file through Rsync we need following things :

  1. Cpanel Username
  2. Website IP
  3. Full path
  4. Cpanel Password
  5. localpath

Steps to take a BackUp

Step 1: Create a localpath in your system with your website name or any other.

Step 2: Copy and paste the command below in your editor:

Rsync command :

#!/bin/bash
echo “Example Website”
rsync -razP Username@IP:/remote file/. /localpath/ ( To save file)
echo “Example Website BackUp Done”

-r “recursive” recurse into directories
-a  “archive” archive mode
-z “compress” compress file data during the transfer
-P “permissions” same as –partial –progress

Now edit the username, IP, remote file and localpath accordingly and save it.

Step 3: Now open the terminal at the location of the file (ex : the folder in which it is saved the file.)

Step 4: Now run the below-mentioned command in the terminal :

Command –     chmod +x ./(filename)

Step 5: In next step run the command mentioned below:

Command –       ./(filename)

After running the command you will asked for the password, enter the Cpanel password and you are done.

All files are saved in your local path.

Digvijay Dubey

View Comments

Share
Published by
Digvijay Dubey

Recent Posts

Bulk Mailing Guidelines

Bulk Mailing Guidelines About One of the best marketing techniques for small and big scale…

5 years ago

LARAVEL CRUD OPERATION

Step – 1. Laravel Install first of all we need to get fresh Laravel version…

5 years ago

Make a WordPress Website

To make a wordpress website you need following: Wamp/Xampp/Lamp server (Wamp: for Windows OS, Lamp:…

5 years ago

Deploy Laravel in Production mode on Bitnami LAMP

How to Deploy Laravel in Production mode on Bitnami LAMP with Ubuntu 16.04 ? Below…

5 years ago

Download WordPress

We are helping here step by step to guide how to install and configure wordpress…

6 years ago

Download Wamp Server

We use Wamp server to run WordPress at local system. Step 1 – Go to…

6 years ago