IT doods - automati...
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] IT doods - automatic SFTP download/upload Q

8 Posts
6 Users
0 Reactions
103 Views
Posts: 14061
Free Member
Topic starter
 

I currently manually upload files to a client via SFTP - works great.

There is a possibility that in the future I may need to download about 3000 files from them every day, work on them and upload them back.

Downloading is going to start at about 7am so I'd like to automate this so that when files appear in their source directory I'd like them to be downloaded to my system.
Similarly once files appear in a specified folder on my system they would automatically be uploaded to the client.

Solutions?


 
Posted : 05/01/2017 5:08 pm
Posts: 0
Free Member
 

You might want to research into rsync. It will only download the changes rather than the whole set each time. That might help?

Rachel


 
Posted : 05/01/2017 5:10 pm
Posts: 0
Free Member
 

As ^^^^ said, seems like a candidate for cron and rsync tbh.

You will also need to put some monitoring in place to ensure it works, nothing difficult if you can script a little.


 
Posted : 05/01/2017 5:20 pm
Posts: 14061
Free Member
Topic starter
 

I shall investigate, ta 🙂


 
Posted : 05/01/2017 6:56 pm
Posts: 14061
Free Member
Topic starter
 

Hmm, rsync is going to require rsync server running at my clients'. That's not going to happen.


 
Posted : 05/01/2017 8:39 pm
Posts: 3212
Free Member
 

Dropbox / Google Drive maybe?


 
Posted : 05/01/2017 8:54 pm
Posts: 0
Free Member
 

If on windows PC, WinSCP, synchronize and keepuptodate might do the trick?

https://winscp.net/eng/docs/task_keep_up_to_date#automation

https://winscp.net/eng/docs/scriptcommand_keepuptodate


 
Posted : 05/01/2017 9:24 pm
Posts: 3212
Free Member
 

Ah, just remembered I've used Robocopy in the past - that might be worth looking into...


 
Posted : 05/01/2017 10:30 pm
 xora
Posts: 950
Full Member
 

Hmm, rsync is going to require rsync server running at my clients'. That's not going to happen.

No it doesn't it requires ssh server (which you already have for sftp) and rsync binary on remote machine.


 
Posted : 05/01/2017 10:33 pm