Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am new to the shell scripts. I just want to know automated cronjob script to download all the ftp files. Now, I am downloading manually approx 600 MB. From now onwards I have the download the files on Every saturday. Please let me know the easiest sollution.

Thanks & Regards,

G.Gopi Krishna.

share|improve this question
add comment

2 Answers

You can do a wget every sunday. With the login and the FTP password on the line, the download starts automatically. You can do a mirror to download only the differences, and do a tar or what you want after the download.

Make a small script, and ask cron to launch it every sunday.

share|improve this answer
    
Or Saturday, as in the OP's question. –  Dennis Williamson Jul 5 '10 at 9:41
    
Oops, I was tired, I have an error on the day. thanks ! –  Dom Jul 5 '10 at 13:20
add comment

You already have it: use cron.

0 0 * * 6 download_file.sh
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.