Automate Backup in Linux Using RSYNC & Crontab | Backup Data On Remote Server Using RSYNC

preview_player
Показать описание
#Welcome to Nehra Classes Youtube Channel#
#Automate Backup Using rsync & crontab in Linux#
============================================
rsync or remote synchronization is a software utility for Unix-Like systems that efficiently sync files and directories between two hosts or machines.
One of them being the source or the local-host from which the files will be synced, the other one being the remote-host, on which synchronization will take place.

There are basically two ways in which rsync can copy/sync data:
Copying/syncing to/from another host over any remote shell like ssh, rsh.
Copying/Syncing through rsync daemon using TCP.
============================================

Server: (192.168.1.111)

# yum repolist

# rpm -qa | grep rsync

# yum install rsync -y

# rpm -qi rsync

# su - vikasnehra

# mkdir backup

# cd backup

# touch test{1..10}.txt

# mkdir -p /tmp/backup

# rsync --help

# rsync -v /home/vikasnehra/backup/* /tmp/backup/

# exit

# mkdir -p /backupsource/

# cd /backupsource/ ; touch test{1..10}.txt

CLIENT: (192.168.1.108)

# yum repolist

# rpm -qa | grep rsync

# yum install rsync -y

# mkdir -p /backupdestination/

Go To SERVER:

Go To CLIENT:

# cd /backupdestination/

# ls -lha

# rm -rf *

# ls -lha /root/.ssh/

# mkdir -p /root/.ssh/

# chmod 700 /root/.ssh/

# touch /root/.ssh/authorized_keys

# chmod 600 /root/.ssh/authorized_keys

Go To SERVER:

# ssh-keygen

# date

# crontab -e

!#/bin/bash

# crontab -l

# tail -f /var/log/cron

Go To CLIENT:

# ll /backupdestination/
===
Thanks for watching the video. If it helped you then, please do like & share it with others as well. Feel free to post your queries & suggestions, we will be glad to answer your queries.
If you like our hard work then do subscribe to our channel & turn on the bell notification for latest updates.
===
Our Some Popular Videos:

Yum Server RHEL 7:

DNF/Yum Server RHEL 8:

Puppet Configuration:

Startis File System in RHEL 8:

Concept of All RAID Levels:

Configure RAID-0 in Linux:

Configure RAID-1 in Linux:

Configure RAID-5 in Linux:

Configure RAID-6 in Linux:

Configure RAID-10 in Linux:

Migrate LVM:

LVM Snapshot:
===
Contact Us:
Vikas Nehra's Twitter Handle:👇

Registration:👇

Twitter Handle:👇

Facebook Page:👇

Instagram:👇

Webpage:👇

Telegram Channel: 👇

WhatsApp Us: 👇

Email Us:👇
===
©COPYRIGHT. ALL RIGHTS RESERVED.
Рекомендации по теме
Комментарии
Автор

such a great video sir... very clear explanation... Thanks for sharing :)

PavanM-rmyh
Автор

Great video rsync cron and basic shell script combination was great. Extremely helpful for newbies

sautamghosh
Автор

Love the the way you make things simple..

amarsavalgi
Автор

Crystal clear explanation Nehra g i wish u were in our organization ! Keep ur great work going

shaikaisha
Автор

Very nice explanation sir. And It is most important task in Any organization..

harispalegar
Автор

dude has his own clothing line, epic. so many colors to choose from...

magui
Автор

very good explanation. easy to understand

mithuntechnologies
Автор

Nice video.. Weldone, now remains to setup md5 checksum to confirm source and destination files, if not same.. To initiate synchronization again

abdulqadirbabagana
Автор

Thank you Nehra, great content, my friend!

psij
Автор

nice video. all the support karo Bhaiyo

anujnehra
Автор

Great video and great insight into in depth knowledge of data backup, can we do the real time sync for any file changed and can be synced for backup possibilities. Also is it possible to make the versioning of files, same like they are in the Google backup utility?

sandeepmarch
Автор

Love it. How to do it in an Organisation when you have thousands of servers?

TMDApr
Автор

Hi Sir,
Could you please provide me with the knowledge on what is "migrating IP from old to new host" and what happens if we do this?
Thanks
Chandra

sekharchandra
Автор

Sir it will be overnight on next auto rsync ?

rampanwar
Автор

sir like windows if our os is crashed, so we can recover files from c drive but in linux how we will do that

Gamma_Wale
Автор

This can use to copy 10GB files to backup server everyday.?

hasanulbanna
Автор

sir did you install rhel8 os image or rhel8 server image?

abhishekarya
Автор

How to back up file from Linux to windows machine using wsl need detailed steps 🙏

sohelkhan
Автор

How to connect remote file path and copy those same at current location Linux machine

RakeshBitling
Автор

hello sir, can i run this same in the ubuntu also?

vetriforward