views:

34

answers:

2

If there exist a directory,

/backup/ And the files in it are a.gz b.gz c.gz

And another directory /backup-directorybackup And the files in it are a.gz

I need a shells script to compare two directories if the files are present then ignore it and if the filesare not present copy it to the destination directory

Thanks..

+2  A: 

"rsync" command has it all

zed_0xff
+2  A: 

rsync -a /backup/ /backup-directorybackup/

Paul R
Thanks..........
Hulk