Totally OT: WinSCP and scripting

ToriAnneke
Contributor II

Hey all,

Any you folks good with scripting on Windows OS?

I got Windows 7 box and I need to copy a file to a remote Mac. I know there is no Cron, ssh nor scp on Windows and found online that I can use Putty and/or WinSCP to do so. But I have no clue how make a scheduled back up with PC's.

Does anyone have an idea or implementation? Maybe another way of approaching this?

Pretty much, I want to back up our Universal Type Client database which runs on a PC to a remote Mac as a cron job on a daily basis.

I'm clueless when it comes to Windows stuff.

Thanks in advance as always,
-p

2 REPLIES 2

jarednichols
Honored Contributor

WinSCP is a good way to go if you're transferring to a non-Windows system. If you want to transfer to another Windows system, Robocopy is a great tool.

The cron or launchd equivalent in the Windows world is the Scheduled Task. Essentially, set up your script (usually batch or powershell) and make sure it works. Then setup your Scheduled Task to fire off the script at the right interval. In the Scheduled Task, you can run it as a particular user to ensure your rights are all correct.

Though this also begs the question: Why not use a proper backup client?

dpertschi
Valued Contributor

With the right options/flags, you should be able to use Robocopy.

Our Wintel team recently used it to copy a ton of Mac data from a Win share to a Mac server and it went over fine.