rsync so that files in source and destination directory are the same
问题 I am trying to do an rysnc which would cause files in the destination directory that are not in the source directory to be deleted. As a result there would be the same number of files in the source and destination directories. Based on google searches and other stack overflow inquiries I tried the following command: rsync -avz -e -d /home/web/dataprocess/testwind/*.dbf -d /home/web/newcheck/ --delete While this did rsync over the files from the source directory that were dbf files, it did not