I'm running a web site located on an outside server using gFTP to transfer updated web pages. Is there a way to i) have gFTP remember the password to log into the web server, and ii) automatically chmod the upload file to the permissions that it is over writing? Mike
Mike McMullin wrote:
I'm running a web site located on an outside server using gFTP to transfer updated web pages. Is there a way to i) have gFTP remember the password to log into the web server, and ii) automatically chmod the upload file to the permissions that it is over writing?
Mike
I've not used gftp for years, but there's a fair chance it will read if from your .netrc. For details: man ftp I don't know about the chmod tho. Personally, I prefer the commandline programs scp and rsync which both can use ssh for their transport and which do do the chmod, and ssh can handle passwordless logins. A carefully-crafterd rsync command will do an excellent job, just transferring your changes. I run this regularly to collect some files: rsync --compress --timeout 600 --partial --perms --times --stats \ --recursive example.com:SharePrices ~/ There are more options, you can have it delete superfluous files at the destination, you can do a --dry-run to see what will happen
On Tue, 2005-12-13 at 21:20 +0800, John Summerfield wrote:
Mike McMullin wrote:
I'm running a web site located on an outside server using gFTP to transfer updated web pages. Is there a way to i) have gFTP remember the password to log into the web server, and ii) automatically chmod the upload file to the permissions that it is over writing?
Mike
I've not used gftp for years, but there's a fair chance it will read if from your .netrc. For details: man ftp
I don't know about the chmod tho.
Personally, I prefer the commandline programs scp and rsync which both can use ssh for their transport and which do do the chmod, and ssh can handle passwordless logins.
A carefully-crafterd rsync command will do an excellent job, just transferring your changes. I run this regularly to collect some files: rsync --compress --timeout 600 --partial --perms --times --stats \ --recursive example.com:SharePrices ~/
There are more options, you can have it delete superfluous files at the destination, you can do a --dry-run to see what will happen
Thanks for the info. I need to be careful as I don't want to cause trouble with this particular ISP. I don't know if they're running rsync (man says both sites need it), nor do I seem to see where to use a password, as the account is password protected.
participants (2)
-
John Summerfield
-
Mike McMullin