Sometime, we want he easy way to automaticlly schedule FTP backup to Windows 7 pc.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3

Here's the KACE article I used and my notes on setting up the scheduled task on a Windows server:

http://www.kace.com/support/kb/index.php?action=artikel&cat=1&id=590&artlang=en&highlight=

Note - set to run daily @ 1AM
____________________________________________

1) The backup.scr should be as follows:

open kbox
kbftp
getbxf
prompt
type binary
mget kbox_*
close
quit


2) The Scheduled Task should have the following settings:

Run:
D:\KACE\Backups\K1100\bkupkbox.bat D:\KACE\Backups\K1100\

Start in:
D:\KACE\Backups\K1100

Run as:
administrator

Hope that helps!

John

Answered 08/06/2012 by: jverbosk
Red Belt

Please log in to comment

Answers

2

run program atftp.bat, it will automitically create Date+Time subfolder under c:\FTP according to the schedule time, such as every day 12:01pm, then ftp the K1000 and backup:

@echo off

c:

cd\

if exist C:\FTP goto Billset

md FTP

 

:Billset

cd\FTP

 

(echo open kbox

echo kbftp

echo getbxf

echo prompt

echo type binary

echo get kbox_dbdata.gz

echo get kbox_file.tgz

echo close

echo quit) >c:\FTP\ftpcommand.txt

 

:ftpbat

(echo cd\FTP

echo set ftptime=%%date:~0,4%%%%date:~5,2%%%%date:~8,2%%%%time:~0,2%%%%time:~3,2%%

echo md %%ftptime%%

echo cd %%ftptime%%

echo ftp -s:c:\FTP\ftpcommand.txt) > ftp.bat

 

:Billftp

REM please change the automatic backup time and date bellow

REM you can check schedule by run cmd->at

REM you can delete schedule by cmd->at id /delete  (ID you can get from at)

at 12:01 /every:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday c:\FTP\ftp.bat

 

Answered 08/06/2012 by: BillL
White Belt

  • Did you mean for this to be a blog?
Please log in to comment
Answer this question or Comment on this question for clarity