Тёмный

SFTP - Windows Script to Automate Synchronize Remote to Local Directory using WinSCP 

CodeCowboyOrg
Подписаться 13 тыс.
Просмотров 166 тыс.
50% 1

WinSCP Script - goo.gl/XyYXTp
WinSCP - Batch File - goo.gl/PBcNz6
WinSCP Download (download Portable) - winscp.net/eng/download.php
WinSCP Scripting Resource - winscp.net/eng/docs/scripting
Demo of using WinSCP to script the automation of synchronizing Remote SFTP directory with a Local Directory

Наука

Опубликовано:

 

5 сен 2015

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 111   
@harris8205
@harris8205 4 года назад
THANK YOU! i searched for 3 days for such a nice solution!!
@OJLDA
@OJLDA Год назад
Thank you very much for this! I had to lose time and sanity before I found your video... 🙂 Great job.
@mwamburi
@mwamburi 4 года назад
Thanks a million for this! You've just earned a new sub
@GladstonLionel
@GladstonLionel 4 года назад
Very useful short and to the point video. Thanks
@123sz
@123sz 7 лет назад
Simply works. Keep the good work It really help in doing ETL
@BitmasterXor
@BitmasterXor 4 года назад
This is amazing! Thanks for sharing the knowledge! works like a charm.
@05WoodsD
@05WoodsD 6 лет назад
I have followed your video to automate sync with remote to local and vice versa, However is there a method to use that once a file is deleted from local that it synchronizes with the remote folder and deletes that too. Would be really helpful if you could provide a link or method to resolve this issue.
@machina3420
@machina3420 6 лет назад
Thanks for the video ! If i need to transfer same files every day, does this method overwrite the old ones ? I basically have to update same files every day since the content of the files changes daily but file names stay the same.
@quantization
@quantization 5 лет назад
This did exactly what I needed, great video man.
@jeremyharris1588
@jeremyharris1588 5 лет назад
Have you tried to run the script with the Windows Task Scheduler? I have the ability to run the script manually but adding in Win Task Scheduler is not working.
@DJIrvinCee
@DJIrvinCee 4 года назад
Thank you. This was a 100% help for me!
@jovanm.3951
@jovanm.3951 8 лет назад
This is amazing! Thanks brother!
@tristangallagher1542
@tristangallagher1542 3 года назад
Love your video & resources, worked first go..! thanks!
@fikrizainul1184
@fikrizainul1184 6 лет назад
where this 4 windows come from? What their connection between them?
@cypher30
@cypher30 2 года назад
Hey mate, that helped me a lot, but I want to sync the local and the remote whenever my local folder changes. Can you help me to do that?
@ravikishore1725
@ravikishore1725 6 лет назад
Hi Sir, I am facing this issue. [Execute Process Task] Error: In Executing "C:\Users\kishorer\Documents\Visual Studio 2010\Projects\WINSCP\WinSCP.com" "/script=C:\Users\kishorer\Desktop\Archive\SFTPScript.txt" at "", The process exit code was "1" while the expected was "0". What could be the mistake i have done
@82jonathonb
@82jonathonb 3 года назад
when adding a new site (SFTP), Winscp logs me into the server without flagging the SSH key. thoughts?
@Trash2321
@Trash2321 5 лет назад
Hi, thanks for your video. Anyway it works, but cant see the files being sent on the console. What I am missing?
@abreezy1st
@abreezy1st 5 лет назад
can you do this to download files to a raspberry pi from a remote computer on the same wifi?
@teamras4888
@teamras4888 2 года назад
Have you tried to schedule the script in Windows scheduler? I got error "Destination cannot be found" when running the script in Windows scheduler, but manual run the script is successful.
4 года назад
Thanks very much. I have a question. Can i synchro only new files?
@kshitiz06
@kshitiz06 4 года назад
Does anyone know the script to connect to sftp, if sftp connection is key based. I have sftp server that requires username and a private ssh key to connect to it. Not sure whats WinSCP solution to it
@SirDella
@SirDella 2 года назад
Thank you, had to write it a little differently in my case but it still worked
@AakritMaurya
@AakritMaurya 4 года назад
Hi, it shows connection to server timed out. Can you please help?
@alfredotaira3417
@alfredotaira3417 2 года назад
Muchas gracias por tu video! hace días que intentaba esto. Como dato adicional: para poder visualizar el host key, también se puede ver presionando el botón de la barra de herramientas Sessión - Información de servidor/protocolo - Pestaña Protocolo y en la parte de Huellas de clave de servidor en la parte final (abajo) aparece el host key. (el valor separados con ": " )
@clintla
@clintla 5 лет назад
Thank YOU mr. CodeCowboy!
@emiliakullutwe9569
@emiliakullutwe9569 2 года назад
after installing winscp I didnot save my host key. How can I find my host key so that I can run the script, because without the host key I keep getting an error when running the script. And the server I'm connecting to and getting files from is an FTP and not SFTP so do I still need a host key?
@Immortal34345
@Immortal34345 5 лет назад
Please i mived from ftp to sftp so i need s script to move text files from the server to the local drive
@danielnachajon7648
@danielnachajon7648 3 года назад
This does not work for me. I don't know my sshhostkey as the FTP was set up by vendor. No other changes made to script. ANy thoughts?
@ItsmeRajivS
@ItsmeRajivS Год назад
if there is destination is storage account container and it wont have any ssh key. what is the process
@fatah5390
@fatah5390 2 года назад
how do i use to to transfer file from ftp server to remote location in a shared drive
@arkangelic15
@arkangelic15 6 лет назад
Thanks, this save me a loooooot of time
@azelic
@azelic 3 года назад
How to setup in Task Scheduler: To run WinSCP script, use /script= switch, for example: Program/script: "C:\Program Files (x86)\WinSCP\WinSCP.com" Add arguments: /script="D:\test.txt"
@lccompany6178
@lccompany6178 3 года назад
You've saved my life. Works like a charm. Thanks!
@emiliakullutwe9569
@emiliakullutwe9569 2 года назад
I am trying to access the script and used the links provided. It takes to to a page saying that I need access, I requested for access like two days back but I haven't received any response yet. Can you please give me access to the scrip and batch file
@rhb.digital
@rhb.digital 6 лет назад
Thanks man! Great job!
@tejakirankumarjami9993
@tejakirankumarjami9993 6 лет назад
Hi there How to do the same using the ppk
@PriyaDarshiniNeverSayNever
@PriyaDarshiniNeverSayNever 5 лет назад
I'm not finding any key..is it only for paid version?
@erick9604
@erick9604 Год назад
How can I prevent it do not overwrite the file with same name when I backup? Many Thanks!
@LocalDirectory
@LocalDirectory 7 лет назад
Highly educational.
@markcalhoun9480
@markcalhoun9480 5 лет назад
Works great! Thank you!!!
@allpet
@allpet 7 лет назад
Amazing! Thanks bro!
@lucasabreucuritiba
@lucasabreucuritiba 5 лет назад
What if my key has a password? How will the script look?
@eddied96
@eddied96 4 года назад
Much appreciated Dude, Thanks
@JuanaMariaGomez
@JuanaMariaGomez 5 дней назад
how can i sync base on the latest one in time
@flexx.8678
@flexx.8678 8 лет назад
how can i create an acc in winscp? :C
@mundoluvtech-amantesportec3794
its great! thanks a lot bro
@amoltejankar
@amoltejankar 2 года назад
Hello, I am not getting the message to copy the key can you please help me
@SinisterChronicles674
@SinisterChronicles674 Год назад
Thanks this really helped me.
@ismailariff8951
@ismailariff8951 3 года назад
how to do vice versa?
@fasi64
@fasi64 2 года назад
Hi How can i get this script ..i cannot download?
@KVCSOLO
@KVCSOLO 4 года назад
works perfectly for my FTP server after just a couple minor changes
@shahoodkhan826
@shahoodkhan826 2 месяца назад
How you got the key for ftp server?
@sureshpalani8573
@sureshpalani8573 2 года назад
Hi bro, we are unable to download config file and bat. Please accept my request for download that files
@muletowndumpsters
@muletowndumpsters Год назад
Thanks.. been oddly stumped on this for days. Forgot I needed to call the .txt from my .bat file. Smh. I used to do this all the time.
@raysr6112
@raysr6112 2 года назад
It works like a charm ! But do you know how to use "keepuptodate" ?
@pewpew215
@pewpew215 3 года назад
save my ass. company just switched to sftp. works great thanks!
@ether-man3074
@ether-man3074 4 года назад
Thank you sir!!!!
@tarlesschmitz4628
@tarlesschmitz4628 4 года назад
Very good!!!
@sufyankhanbest
@sufyankhanbest 3 года назад
how do I download from Remote to Local from specific Date range or for single day like from yesterday or day before? PLEASE HELP
@sufyankhanbest
@sufyankhanbest 3 года назад
found the solution, if anyone need this please follow this command: get -filemask="*>=today" /src/test/* C:\Users\Administrator\Desktop\
@ifrahkhan6870
@ifrahkhan6870 7 лет назад
when i try to run this script i'm getting an exception Too many parameters for command 'synchronize'. what is the solution for this. I'm trying to connect to ftps server
@AlaminBhuian
@AlaminBhuian 7 лет назад
I got that error, because i have 'space' on my local path folder name
@rcallain2001
@rcallain2001 5 лет назад
@@AlaminBhuian not sure if you resolved this but I had to generate the open from withing WinSCP and I used that to create my batch
@eeee3202
@eeee3202 2 года назад
Batch Script download is requiring access. FYI.
@michawieraszka2595
@michawieraszka2595 5 лет назад
Can we synchronize only one type file ? like only text files? if yes how to do this ?
@BilelHawari
@BilelHawari 5 месяцев назад
synchronize local -filemask="*.txt" "localfolderpath" "remotepath"
@joelti
@joelti 3 года назад
Muito obrigado pela ajuda!
@udararanaweera1927
@udararanaweera1927 3 года назад
thanks very usefull!
@ThePatrickMiller01
@ThePatrickMiller01 Год назад
MY HERO! 😀
@adinbeslagic2010
@adinbeslagic2010 Год назад
Great video! Thanks a lot. But is there a way to synch only one specific file from the remote without downloading all 6 of them? In your example, let's say 1001.txt...
@BilelHawari
@BilelHawari 5 месяцев назад
synchronize local -filemask="1001.txt" "localfolderpath" "remotepath" You can use semicolon as a separator if you like to include multiple files like: synchronize local -filemask="1001.txt;1002.txt;1003.txt" "localfolderpath" "remotepath"
@IASU97
@IASU97 5 лет назад
Did tried all steps mentioned but while running the batch file got an error winscp.com not recognized as an internal or external command.. Can you help please
@AlexP-yf9rr
@AlexP-yf9rr 5 лет назад
I think you need to add the folder of WinSCP to the Path variables
@evilbabaroga
@evilbabaroga 5 лет назад
@@AlexP-yf9rr this was the issue, thanks
@khairunhafiz2001
@khairunhafiz2001 6 лет назад
Error came out like this. What did i do wrong 'winscp.com' is not recognized as an internal or external command, operable program or batch file.
@randomperson5732
@randomperson5732 6 лет назад
I'm getting the same and can't find any solution. Were you able to figure this out?
@Hussein-zb1kr
@Hussein-zb1kr 6 лет назад
same problem if I find a solution I will update, let us help each other.
@randomperson5732
@randomperson5732 6 лет назад
Thanks! all my findings said to try and use the full path instead of just winscp.com - but I still received the same error
@JamesIsbellUK
@JamesIsbellUK 6 лет назад
Thanks!
@SafielyAhadiely
@SafielyAhadiely 4 года назад
thanks very much
@JonathanPiston
@JonathanPiston 6 лет назад
Thanks for the video, but i'm getting "Nothing to synchronize."
@LigmaBaldrich
@LigmaBaldrich 6 лет назад
That means that there are no differences between source and target
@1973554628
@1973554628 6 лет назад
I got success. thanks
@kashif665
@kashif665 5 лет назад
Hello, I always receiving this error Authenticating with pre-entered password. Access denied. Connection has been unexpectedly closed. Server sent command exit status 0. Authentication log (see session log for details): Using username "myusername". Access denied. Authentication failed. C:\Program Files (x86)\WinSCP>pause Press any key to continue . . . Same username and password working when i login to Winscp. should i need to activate anything option from Cpanel? or anything else. please let me know what i am doing wrong. i am trying since 2 days. Thanks
@armandotorres1065
@armandotorres1065 4 года назад
Hi men, you could resolve this issue, I have the same
@janakiramkillana9191
@janakiramkillana9191 4 года назад
@@armandotorres1065 how dud you resolve this issue? we are facing same issue but not able to check
@helpdesk5323
@helpdesk5323 6 лет назад
Can you make a video of sync to local from remote and delete from remote after each successful file transfer?
@pranayreddy1767
@pranayreddy1767 5 лет назад
Help Desk Hi.. I am looking exactly what you’re looking for .. in my file can be up to 50 GB . I tried electron Js with spring boot .. but it’s doesn’t work as expected . Please let me any thoughts thanks
@pranayreddy1767
@pranayreddy1767 5 лет назад
Help Desk winscp.net/eng/docs/guide_automation Can you try this
@manufunk1
@manufunk1 2 года назад
Your video is helpful.Can you please upload or share any commands or script for uploading and synchronize the file from Local network folder to Remote server external. I have the Username and Password for remote server. If you can send us the script will be much Thankful.
@yusufarief30
@yusufarief30 4 года назад
Thank you for your video, this is amazing , I need help... how about the script, if we download from remote SFTP server to local and after downloaded, the file on remote sftp server automatic deleted. Thank you so much
@humbertopereira5864
@humbertopereira5864 4 года назад
Boa Noite, vc conseguiu fazer esse script? compartilha ai por favor... abraço!
@BilelHawari
@BilelHawari 5 месяцев назад
That's not a sync !! you should get then delete... Be careful with this : option batch abort option confirm off Open sftp... get /remote/path/to/files/* "local\path\to\downloaded\files\" rm /remote/path/to/files/* close exit
@selvarajmunusamy5605
@selvarajmunusamy5605 5 лет назад
Perfect . Please let me know how I can schedule this activity .
@waltdee1986
@waltdee1986 4 года назад
task scheduler and point it to the *.bat file.
@azelic
@azelic 3 года назад
To run WinSCP script, use /script= switch, for example: Program/script: "C:\Program Files (x86)\WinSCP\WinSCP.com" Add arguments: /script="D:\test.txt"
@antonwilhelmi1049
@antonwilhelmi1049 2 года назад
awesome
@colinmaharaj
@colinmaharaj Год назад
I have done stuff like this but using pscp (Putty scp)
@sdfeter
@sdfeter 8 лет назад
nice
@srirambharat9572
@srirambharat9572 5 лет назад
Thanks a lot. Very helpful. Additionally, you can give the port number by placing - ":"beside the server. Example: username:password@server:portnumber - hostkey="ssh-***"
@raultobares3768
@raultobares3768 4 года назад
Well, I don't speak English. I need to know how I get the "hostkey" key. When I run the script it tells me that it can't be authenticated
@Randonium8
@Randonium8 6 лет назад
winscp.com ??
@CodeCowboyOrg
@CodeCowboyOrg 6 лет назад
See description area of this video winscp.net
@robertomaceda7280
@robertomaceda7280 2 месяца назад
I cannot make it work...🥲
Далее
Smart Sigma Kid #funny #sigma #comedy
00:26
Просмотров 2,5 млн
File Synchronization
2:51
Просмотров 9 тыс.
Google Data Center 360° Tour
8:29
Просмотров 5 млн
File Explorer Isn't The Only Option
24:36
Просмотров 53 тыс.
Aura 879dsp новинка и хит
0:48
Просмотров 148 тыс.
Choose a phone for your mom
0:20
Просмотров 7 млн