#!/usr/bin/env bash # rsync --recursive --update --ignore-existing --itemize-changes --progress --human-readable --stats --verbose --include="*/" --include="*.mkv" --include="*.mp4" --include="*.srt" --include="*.avi" --exclude="*" "$1" /mnt/"$2"/temp/ffmpeg-vcodec/ ## if required to only copy data which is newer than a specific amount of time then using find and execing to cp gets the job done ## example1: using mtime with a time designator d # find /mnt/p4torrent/completed/* -mtime -8d -type d -exec cp -Rnv "{}" /mnt/p4ds0smb/temp/ffmpeg-vcodec \; ## example2: using mmin (1440 is 24 hours) # find /mnt/p4torrent/completed/* -mmin -1440 -type d -exec cp -Rnv "{}" /mnt/p4ds0smb/temp/ffmpeg-vcodec \;