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..
“ rsync”命令具有全部功能
rsync -a /backup/ /backup-directorybackup/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.