Jump to content

Automatically upload directory contents to FTP server


Recommended Posts

Hello

I'm starting a new homepage and I'd like to be able to automate the upload. Is there a way I can upload the contents of /home/james/webdesign/iphitus/ to ftp.au.geocities.com

The username is rcxau and passowrd is abcdefg

 

Yes, geocities australia does provide FTP.

 

I don't mind i I have to input the password, so long as the upload is automated.

 

James

Link to comment
Share on other sites

Wow thanks!!

 

I made a shell script to do it for me

 

update.sh

#!/bin/bash

cd /home/james/webdesign/iphitus/

rm -fr *~*

rm -fr .x*

copydir --no-netrc --verbose /home/james/webdesign/iphitus/ ftp://rcxau@ftp.au.geocities.com/rcxau/

 

Works a dream!!

 

James

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...