I use Rsync to transfer my downloads onto a NAS drive once complete via the crontab. I'd like to make crontab transfer specific music and video files with their folders to the corresponding video or music folder on the NAS. The code below works well if only the *.mkv included file exists in the folder, if it's mixed then it wont transfer.
thanks
Code: Select all
rsync -a --include='*.mkv' --exclude='*' --include='*/' /home/name/downloads/ /MyNas/video/