I’m trying to write a script for moving my files from my local TB3 NVME drive on my Mac Mini over to my Synology.
Requirements:
Copy all directory names
Only move files that are over 7 days old
Retain time stamps
Remove source file once copied over
Leave any files in directory that are not 7 days old
Bonus if a directory is removed if empty
This is way above what I can do. I’ve tried building scripts utilizing various find commands, rsync and cp commands. I’ve been extremely unsuccessful. Has anyone done something similar here? I’ve been looking at examples for the last 2 days but can’t seem to find something that works. Any help would be greatly appreciated!