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!
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!