Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using cron to FTP files between servers 3

Status
Not open for further replies.

jocasio

IS-IT--Management
Oct 11, 2002
88
US
Hey all,

I would like to set up a cronjob that will ftp backup files from one server to another. Is there a way to do this. I'm not sure if I can issue the ftp command with user name and password as parameters (i've tried, but either it can't be done or my syntax is incorrect).

So say I have a file /opt/john.txt. I would like to ftp to server 1.1.1.1 (user name root, password 1111), cd to /databackup and put the file there. can someone tell me:
1) can it be done
2) how.

Many thanks for your help!
 
Yes this is possible.

Do a search for FTP Cron and you will find over 100 postings.
 
Comtec17:

Thanks. Well... Um... HOW????

jocasio
 
Go to where it says search on top and type in "FTP Cron" and select search posts (keyword).

There are about 100 posts with sample scripts.
 
comtec17:

Thanks so much for your information! I did not see your second sentence "Do a search for FTP Cron and you will find over 100 postings".

Many thanks again!

jocasio
 
pete91z:

Thanks for your reply as well. I tried to create some of the scripts that were posted,but they didn't work for me. So I checked out .ntrc and it works like a dream!
Thanks again,

jocasio
 
rdist or rsync are much better utilities - and you can use them over ssh if you need added security.

--
Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top