Originally Posted by spider69
I am looking for shell FTP script to upload files and remove files. Here is the workflow I am looking at.
1) Delete the files on FTP server in backup folder
2) Upload the files from web server to FTP
3) Delete files from web server
We'll be glad to help
...post what you've written so far, and where you're stuck. But we are not going to write your script(s) for you...there are thousands of example FTP scripts you can easily find with a Google search.
However, what you're looking for would be much better done with SSH/SCP...not only is it more secure, but more easily scripted, since (once you exchange your key information), you don't need a password to transfer files, or perform operations on the remote system.