Skip to content

Instantly share code, notes, and snippets.

@nitincoded
Created April 10, 2016 11:42
Show Gist options
  • Save nitincoded/ac3b7333759341543049b0914d12a20f to your computer and use it in GitHub Desktop.
Save nitincoded/ac3b7333759341543049b0914d12a20f to your computer and use it in GitHub Desktop.
Copy local backups to remote NAS using WinSCP
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /console /command "open scp://root:[email protected]" "synchronize remote -filemask=>3D D:\Backup /volume1/Backup" exit
#Try one of these to accept the remote signature
#"C:\Program Files (x86)\WinSCP\WinSCP.exe" scp://root:[email protected]
#"C:\Program Files (x86)\WinSCP\WinSCP.exe" /command "open scp://root:[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment