LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-21-2005, 08:33 PM   #1
greg334
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
Copy files with cron


Hi
I am trying to figure out how to copy all the files and directories in one directory to another directory, over writing all of them. I want to set this up in cron, but all my attempts have failed with the cp command. I can get other things to work in cron, but not this.

It has been a very long time since I had to do this and I can not remember how to use the cp command to do the copying.

Once this is solved, my Next problem is to load a database from a sql file with phpmyadmin and cron.


Thanks in advance.

Greg
 
Old 02-21-2005, 10:13 PM   #2
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 31
The man pages are wonderful. Try man cp, you'll find all the answers you need.
 
  


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
Linux-to-Linux smb copy (cron job)? bardanes Linux - General 5 10-17-2005 03:45 PM
Cron - Delete Files nigeledge Linux - Software 1 10-14-2004 10:36 PM
Cron is not outputting log files... Clubber Lang Linux - Newbie 2 09-27-2004 04:41 AM
cron and tar files blown99GT Linux - Newbie 1 06-25-2002 05:10 AM
how to copy and paste between files and within files Bheki Linux - General 1 02-05-2002 05:29 AM


All times are GMT -5. The time now is 11:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration