I have a script, that downloads the latest backup of my database when I set up a new server with this:
rclone copy --max-age 30m backup:backups /root/
However that will fail if for some reason if the file has a bigger --max-age for any reason.
So I check if there's a sql file or not then increase the --max-age to 1h, but I feel like this could eventually cause rclone to download 2 files, which would mess up the mysql import of the sql files...
Is there a cleaner way to tell rclone to copy the latest file of that folder, regardless of it's age? So I can trust that rclone will download ONLY one file, and the latest.