How do I create a cron job to copy all files that are new within the 1 day span (each day at midnight)? So essentially all files created from the day of to the new folder with all permissions, date attributes, owner/group, in tact.
All files from /var/www/folder1/ to /var/www/folder2/
using crontab -e
Essentially, I am looking for the parameters that can be used to copy files daily from one folder to the other keeping all attributes intact.
Linux: UBUNTU 10.04 lts