How to Set Schedule Backup for Full Linux Server | Automatic Linux Backup Tutorial

Опубликовано: 07 Апрель 2026
на канале: ABDULLAH AL MAMUN
60
1

In this video, I’ll show you how to set up an automatic full backup for your Linux server using simple and reliable tools like cron jobs, rsync. Regular backups are essential to protect your data, and this step-by-step tutorial will help you automate the process so you never lose important files again

PLEASE FOLLOW THIS FOLLOWING STEPS:
############################################
🧩 Step 1: Share Windows shared folder follow my video
My Windows IP Address 192.168.50.17
Step 2: Run following command on Linux Server
sudo apt update
sudo apt install cifs-utils -y
sudo mkdir -p /mnt/windows-backup
Mount Windows Share folder on Linux Server 👇
sudo mount -t cifs //192.168.50.17/LinuxBackup /mnt/windows-backup -o username=administrator,password=Fel@123,vers=3.0
________________________________________
🧩 Step -3 Set Exact Date Time Windows & Linux
Open Windows PowerShell
Get-Date
ON Linux Server Use following command
sudo timedatectl set-timezone Asia/Dhaka

Step -4: set schedule by crontab on Linux Server
ON Linux Server Use following command👇
sudo crontab -e
ChatGPT said:
Add the following line at the end of the file.👇
25 23 * * * mountpoint -q /mnt/windows-backup || sudo mount -t cifs //192.168.50.17/LinuxBackup /mnt/windows-backup -o username=administrator,password=Fel@123,vers=3.0 && sudo rsync -aAXHv --exclude="/proc/*" --exclude="/sys/*" --exclude="/dev/*" --exclude="/tmp/*" --exclude="/run/*" --exclude="/mnt/*" --exclude="/media/*" --exclude="/lost+found" / /mnt/windows-backup/linux-full-backup-$(date +\%F)/ /var/log/linux-backup.log 2 &1