Shell script to copy files
If there exist a directory,
/backup/ And the files in it are a.gz b.gz c.gz
And another directory /backup-directorybac开发者_如何学Gokup 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..
"rsync" command has it all
rsync -a /backup/ /backup-directorybackup/
精彩评论