How to backup data and transfer remote server CentOS | Linux Tutorial 2020

Опубликовано: 06 Апрель 2020
на канале: Linux Teaching House
634
3

340K Subscribers . 250K Views

How to create backup and transfer remote server Centos

To backup your data and transfer it to a remote server running CentOS, you can use the rsync command. Here are the steps to follow:

Open a terminal window or log in to the server using SSH.

Use the rsync command to backup the data. For example, to backup the /home directory, type:

sudo rsync -avzh --progress /home/ remote_username@remote_host:/remote/directory/

Replace remote_username with the username of the remote server, remote_host with the IP address or hostname of the remote server, and /remote/directory/ with the directory path on the remote server where you want to store the backup.

The -a option is used to preserve permissions and other attributes of the files being backed up, -v option is used to enable verbose output, -z option is used to compress the data during transfer to reduce the amount of data transferred, and --progress option is used to display the progress of the backup.

Enter the password for the remote user when prompted.

Wait for the backup to complete. This may take some time depending on the size of the data being backed up.

Once the backup is complete, verify that the data has been transferred to the remote server by logging in to the remote server and checking the contents of the backup directory.

That's it! You have successfully backed up your data and transferred it to a remote server running CentOS using the rsync command.

keep watching my video
Please Subscribe and click the notification bell so you never miss a video
Thank You For Watching


#LinuxTipsandTricks2020 #LinuxServer #LinuxTeachingHouse #LinuxTutoial2020