I need to copy some files from a particular directory to a different location on a daily basis. I want to copy the changes only, so planning to use
rsync. These files follows the following naming convention
My command looks as follows
# rsync --update -raz --progress /var/lib/mysql/mysql-bin.* /dbdata/binarylog/
My confusion is since I am planning to copy only few files from a directory rather than full directory contents , I have used
* to copy only required files.
Just want to know whether my command is correct to achieve the same.