[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
August 22, 2020 8:51 AM, "Paul Sutton" <zleap@xxxxxxxxxxx> wrote: > > You can compare files / directories with the diff tool > > https://www.tecmint.com/compare-find-difference-between-two-directories-in-linux > > or man diff > > As for copying files from one location to another, what is your aim > here, just copying and overwriting any with the same name, overwriting > older versions with newer version or renaming files of the same name so > you preserve data and can sort out later. > > There are users with more experience with diff who can probably better help. > I can hear the despair when I don't post enough info! I have a NextCloud server running which is connected to three different computers, two in different locations. So if computer one creates a file and this is uploaded then it will be synced through the whole network. However, this is not a back-up and if I delete the same file it is then deleted across the network! So I have two backup disks in two of the computers, so the script will copy that file into the backup drive. It won't need to delete, overwrite or anything else. I did wonder about rsync but can it do the above please? I thought it synced? Thanks Rich -- The Mailing List for the Devon & Cornwall LUG https://mailman.dcglug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq