I've tried to figure this out but it appears I'm missing something.
I need to copy the log files from the default location to a directory that I'm going to give specific access to via FTP.
if I run this command it does what I'd like it to do, but I'd like this command ran daily. (xxxx I've removed the actual domains)
cp -f domains/xxxx.com/logs/* domains/xxxx.com/public_logs
I've created a file using pico called copylog.sh
here is the contents-
cp -f domains/xxxx.com/logs/* domains/xxxx.com/public_logs
The file is located at home/userxxxx/
when I setup the cron job in the direct admin I did this-
*/1 * * * * /home/userxxxx/copylog.sh
But this doesn't appear to run. (I've set it to the one minute so I can test eventually it will be this -- * */24 * * * /home/leupold/copylog.sh )
Any help or pointers would be very much appreciated it.
I need to copy the log files from the default location to a directory that I'm going to give specific access to via FTP.
if I run this command it does what I'd like it to do, but I'd like this command ran daily. (xxxx I've removed the actual domains)
cp -f domains/xxxx.com/logs/* domains/xxxx.com/public_logs
I've created a file using pico called copylog.sh
here is the contents-
cp -f domains/xxxx.com/logs/* domains/xxxx.com/public_logs
The file is located at home/userxxxx/
when I setup the cron job in the direct admin I did this-
*/1 * * * * /home/userxxxx/copylog.sh
But this doesn't appear to run. (I've set it to the one minute so I can test eventually it will be this -- * */24 * * * /home/leupold/copylog.sh )
Any help or pointers would be very much appreciated it.
Last edited: