We have a Linux script that creates a backup .zip file nightly. Once the .zip file is created, I run another bash script to copy it to a mount directory, which is connected to an Azure VM. That part is working just fine, but I need to only keep three days worth of backup in the Azure mount directory. I'm running the "find" command below, but it doesn't seem to find the right files that should be deleted.
find /data/oracle/devpdb/dpdump/ -name "oneg_*.zip" -mtime +3
It's not returning anything, but I know I have some .zip files which start with "oneg_" that are over three days old. If I run the command below, it find the right files, but it doesn't have the check for files that are three days or older.
find /data/oracle/devpdb/dpdump/ -name "oneg_*.zip"
What am I doing wrong?