Skip to main content
Question

Totally OT: WinSCP and scripting


Forum|alt.badge.img+10

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

Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • July 14, 2014

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
Forum|alt.badge.img+19
  • Contributor
  • 459 replies
  • July 14, 2014

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings