Quantcast
Viewing latest article 6
Browse Latest Browse All 20

Creating Shell script to compare two directories

I have a remote server in which I have come data.
I want to compare those files with local directories.

Assume my IP Address is 168.aaa.bbb.ccc
I am login as root

for copying I typically use this command line
rsync --protect-args -av root@168.aaa.bbb.ccc:/root/dl/2021\ Academy\ Registered/ /home/cathtan/Downloads/dl/2021_Academy_Registered

For comparing, I found the following line of code will do that task

rsync -avun --delete ${TARGET}/ ${SOURCE} | sed -ne...

Read more

Viewing latest article 6
Browse Latest Browse All 20

Trending Articles