I have no clue how closely Mac and linux correlate, but I was working on getting a script set up to download via SFTP my backups, since my windows install crashed and I’m now running Ubuntu. I think this script was working for me, but no promises… heavn’t had time to work with it recently.
Here’s the basics for my system. I had to set up a passwordless login for SSH, which carried over for SFTP as well. With that working I could now use the command line “sftp” program with a batch file.
This is my shell script that cron would run:
sftp -bftp email@example.com
and this is the batch file for sftp (that’s called “ftp” above):
I’m thinking that ‘progress’ visually shows how the downloads are going, and since a window doesn’t pop up with cron as it does in Windows you probably want to ditch that line. Hope this is of some help to you. If you get it working, this information should be added to the wiki article.
art.googlies.net - personal website