Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
Boo

Michael Wildman tehmantra

👻
Boo
View GitHub Profile
@tehmantra
tehmantra / scpsync-photo.bat
Created Apr 19, 2014
WinSCP Folder synchronizer
View scpsync-photo.bat
@echo off
pause
echo --- %date% - %time%: WinSCP Sync startup
echo option batch continue > "C:\var\scpsync-photo.tmp"
echo option confirm off >> "C:\var\scpsync-photo.tmp"
echo open michael@ds01 >> "C:\var\scpsync-photo.tmp"
echo synchronize local "C:\Users\Michael\Pictures" "/home/photo" -delete >> "C:\var\scpsync-photo.tmp"
echo keepuptodate "C:\Users\Michael\Pictures" "/home/photo" -delete >> "C:\var\scpsync-photo.tmp"
"C:\Program Files (x86)\WinSCP\WinSCP.com" /script="C:\var\scpsync-photo.tmp"
echo --- %date% - %time%: WinSCP shutdown