LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2011, 05:15 AM   #1
anaskoara
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Rep: Reputation: 0
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
 
Old 01-22-2011, 07:21 PM   #2
mrshanim
Member
 
Registered: Aug 2009
Posts: 30

Rep: Reputation: 16
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.

Last edited by mrshanim; 01-22-2011 at 07:36 PM.
 
Old 01-22-2011, 08:48 PM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
files modified ? sachin1361 Linux - Enterprise 1 03-13-2007 04:11 AM
gnu make recompiles the source files fully even though the files are not modified yasothamani Linux - Software 4 02-07-2007 07:36 AM
Files modified by switchdesk benjaminrtz Linux - General 1 01-25-2003 11:05 AM
How would you check which files had been modified? entm Linux - General 1 05-14-2002 10:11 AM


All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration