How can I automatically schedule FTP backups using K1000?
Sometime, we want he easy way to automaticlly schedule FTP backup to Windows 7 pc.
Answers (2)
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
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
Comments:
-
Did you mean for this to be a blog? - dugullett 12 years ago