LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy files with cron (https://www.linuxquestions.org/questions/linux-newbie-8/copy-files-with-cron-293210/)

greg334 02-21-2005 08:33 PM

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

sh1ft 02-21-2005 10:13 PM

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


All times are GMT -5. The time now is 05:00 AM.