I need to copy files based on timestamp.
Example:
I have folder1 and folder2.
Files from folder1 should be copied to folder2 and then once a day all files from folder2 will be uploaded to the server.
Files get accumulated in folder1 every day hence I need to copy only new files and don't touch old ones.
My point: I want to use 'copy' command conditionally i.e. current day timestamp - 1. Then every day it will copy files from the day before only. My question: how could I specify files created with timestamp = [current day] - 1 ?