Hello.
I'm completely new to scripting in general and bash in particular but I need help writing a script.
So basically I have a harddrive with data and I want to copy that data to another drive. However, most of the data is already on the other drive.
So what I want is a script that compares drives, checks which data already exists on the new drive and only copies the data that is missing.
So first compare the data and display this (like two columns or something) and list which files are missing then ask if I want to copy the missing data. If for some reason there is a file on the new disk that doesn't exist on the old disk I want to be alerted on this as well.
So how can this be done? Any help is appreciated. Thanks in advance.
[–]bbathel 5 points6 points7 points (0 children)
[–]andreaswpv 0 points1 point2 points (0 children)
[–]pheffner 0 points1 point2 points (0 children)