Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

There is a script (bsh) running in a AIX 7.1 machine. The script is to download some files via FTP from another machine. I need to stop it later because some guy need to have maintenace over the machine, even if the script is not finished.

So I would like to know, if I re-run the script later, can I configure the ftp client to skip the file if a local copy already exist and is identical to the remote one?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Short answer no.

FTP is a blunt tool. Use wget which does provide this functionality and can pull files from an FTP server.

An even better option is to use rsync (over ssh).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.