I currently have a job running on a remote server that transfers over some backups to this server, running Debian Linux 10.
I then created a scheduled cron job to run after this is completed to change the file/directory owner & permissions but am struggling to get it to work correctly.
Backups are sent to /path-to-destination/[folder named with current date]/
I need the directories that are within this path to be 755, and all files within each directory to be 644. How can I structure my cron command to accomplish that?
Thank you for the help!