So I am executing a move script for some files that is older than 1 month every week as follow:
#!/bin/bash
echo "Moving Recordings Older than 30 days!";
/bin/find /var/services/homes/recordings/recording_list/ -type f -mtime +30 \
-exec mv '{}' /var/services/homes/recordings/Old/recording_list/ \;
I want the script to create a stamped log file and record how many files were found and moved, with a new log file every week, any idea?
Thanks,