SBS 2003 autoschedule backup to Linux server

Advertisement

BER
Guest

SBS 2003 autoschedule backup to Linux server

Hi Ive come across winscp and found it to be a very good software, unfortunately I dont have good command line knowledge so my modifying the software is limited.
I would like to setup external backup services.
I have installed it on a SBS 2003 and setup a SFTP link to my Linux server (offsite)
Every so often the server needs to be rebooted for servicing reasons and as such the online mirroring of files that is being synched with my Linux server is lost and needs to be manually reconnected.
Is it possible to have winscp start up automatically and reconnect with my Linux server.
The Link is initiated by the Windows SBS 2003 server.

Thanks in advance.

Reply with quote

Advertisement

BER
Joined:
Posts:
4
Location:
Auckland, New Zealand

Re: SBS 2003 autoschedule backup to Linux server

martin wrote:

How do you use WinSCP form the server (i.e. what is you script)?

Hi Martin, excuse me for my ignorance, I not too sure what you mean by script, Im using the server GUI have set it up to synch with the remote Linux server directory. It constantly monitors the two directories and updates it.
Im not too good with command line, I came across an example that utlizes windows scheduling capability, this is what im after. Just needs some support how to integrate this with Windows SBS 2003. :)

Reply with quote

BER
Joined:
Posts:
4
Location:
Auckland, New Zealand

Re: SBS 2003 autoschedule backup to Linux server

BER wrote:

martin wrote:

How do you use WinSCP form the server (i.e. what is you script)?

Hi Martin, excuse me for my ignorance, I not too sure what you mean by script, Im using the server GUI have set it up to synch with the remote Linux server directory. It constantly monitors the two directories and updates it.
Im not too good with command line, I came across an example that utlizes windows scheduling capability, this is what im after. Just needs some support how to integrate this with Windows SBS 2003. :)


sorry forgot to send you the sample instructions...

To add new scheduled task:

* Go to Windows Start Menu > Settings > Control Panel > Scheduled Tasks > Add Scheduled Task. On Windows Vista go to Windows Start Menu > Control Panel > System and Maintenance > Administrative Tools > Task Scheduler.
* Browse for WinSCP.exe executable, and setup other task properties (like period of execution).
* In advanced properties add appropriate WinSCP command-line parameters to execute the scripting commands you need (typically you will use /script or /command parameters).
The resulting command may look like:
"C:\Program Files\WinSCP\WinSCP.exe" /command "open user:password@example.com" "put d:\examplefile.txt /home/user/" "exit"
Note that the command-line parameter /console was not specified, what makes WinSCP.exe not show the console window, not to disturb you while you are using your workstation.
* You may want to use /log parameter to turn on logging to file.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: SBS 2003 autoschedule backup to Linux server

Sorry, I still probably do not understand.
Problem is probably that when you say only "server", I do not know if you refer to SBS or Linux server.

So I do not know what sever you restart (Windows or Linux)?
I suppose you want to backup files from your Windows machine to the Linux one, right?

Reply with quote

Advertisement

BER
Joined:
Posts:
4
Location:
Auckland, New Zealand

Re: SBS 2003 autoschedule backup to Linux server

martin wrote:

Sorry, I still probably do not understand.
Problem is probably that when you say only "server", I do not know if you refer to SBS or Linux server.

So I do not know what sever you restart (Windows or Linux)?
I suppose you want to backup files from your Windows machine to the Linux one, right?

Yes I want to backup my Windows SBS 2003 server to myn Linux.

Reply with quote

martin
Site Admin
martin avatar

Re: SBS 2003 autoschedule backup to Linux server

BER wrote:

Yes I want to backup my Windows SBS 2003 server to myn Linux.
OK, so just schedule regular synchronization. If should work. If it does not, let me know what does not work.

Reply with quote

Advertisement

You can post new topics in this forum