LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copying dalily modified files (https://www.linuxquestions.org/questions/linux-newbie-8/copying-dalily-modified-files-857934/)

anaskoara 01-22-2011 04:15 AM

copying dalily modified files
 
Hi
How can I make copy only files the have been modified today

as far as get
Code:

find myworkingfolder -ctime 0|xargs -i cp {}-ap bakupfolder
Is it ctime or mtime? and how i add this command to crontab?.

Regards

mrshanim 01-22-2011 06:21 PM

it is mtime
atime-> last file access/read time
ctime-> inode change time
mtime -> file data modified time

http://www.unix.com/tips-tutorials/2...ime-atime.html

If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post.

jv2112 01-22-2011 07:48 PM

To set up in crontab ->


---integrate command into a script.

---Then set up in crontab ->

crontab -e

selected Time /Path/To/Script/

Notes:

http://adminschoice.com/crontab-quick-reference


All times are GMT -5. The time now is 04:34 PM.