Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-21-2005, 09:33 PM   #1
LQ Newbie
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
Copy files with cron

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.

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

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


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

All times are GMT -5. The time now is 05:39 PM.

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