this post was submitted on
5 points (100% like it)
5 up votes 0 down votes
all 12 comments

[–]cparedessyseng for the clouds 8 points9 points ago

Do you have scp or rsync available? These are way more conducive for automation than using sftp.

Also, if you aren't allergic to Python, there's FTP libraries available for scripting this out.

[–]johnnyneverdies[S] 7 points8 points ago

Wow. I just followed this guide and was able to both pull and push a file without any problems. Thanks for the python suggestion!!!

[–]cparedessyseng for the clouds 2 points3 points ago

np. :)

[–]flexdDevelopment, administration and magic. Mostly magic. 1 point2 points ago

Pexpect in Python is kind of awesome for automating things :-)

https://github.com/yuzhichang/pexpect

[–]drew442 1 point2 points ago

add '-e ssh' to your rsync command to have it use SSH.

[–]RustyRapeaXeAIX Admin 0 points1 point ago

use SCP

[–]mattrkSystems & Network Admin 0 points1 point ago

We use a program called RoboFTP. Works perfectly.

[–]mavantixJack of All Trades, Master of Some 0 points1 point ago

WinSCP has a good scripting interface.

[–]bdearloveSysadmin 0 points1 point ago

Check out CrushSync. Amazing application and its only $20. It should do what you need with the added banefit of avoiding scripts, integrated logging, and support. http://www.crushsync.com/

[–]RemyJeAKA Raszh 0 points1 point ago

sshfs and cp(1)

[–]sunshine_killerSystem Specialist and Programmer 0 points1 point ago

Winscp and a batch script. Winscp has a command line way to do what you want. I would link but im on my phone.

[–]master5hake -1 points0 points ago

You should be able to write a powershell script and use the send-ftp function. This should get you started, for doing sweeps of directories look at his later posts. I use send-ftp in internally but I wouldn't send it across the wire without without sftp or ftps. Then just set it as a scheduled task. http://geekswithblogs.net/Lance/archive/2006/11/09/netcmdlets_part_1_powershell_cmdlet_for_ftp.aspx