Bash script to clone hard disk automatically.

Divya Shree

New member
I have a Linux Server running backup's. And I want to clone this server to other disk to get another copy of backup's running simultaneously in both machines.

I have used Clonezilla to clone the disks. Disk1:sda was cloned to disk2:sdb.
I need help to script a bash program such that the daily backup's which run in disk1 simultaneously run in disk2
 
Hey,

Can you please mention, which is the exact backup software you're using (either rsync, tar, BorgBackup, etc.)
You need to understand directory structure of your existing backups on disk1:sda.
Check out the preferred destination for backups on disk2:sdb.

Also, you can use scripts disk1:sda backups, to inspect your directory structure & validate data.
 
Back
Top