[KACE] How to setup a process to automatically move the backup files off of the K1000 to an external source.

  • Summary: Automated process to move appliance backup files to external storage.
  • Symptoms: Drive faulure, SAN failure or database corruption.
  • Cause: Appliance process ony backs up to local storage.
  • Steps to resolve issue:

A script which leverages Windows FTP can be used to automatically copy the two backup files off the KBox into a directory with a date-based name. Set up details are below:

1) Enable FTP by going to KBOX Settings ->Security Settings -> click [Edit Mode] -> check off “Enable backup via FTP” -> click “Set Security Options”.

2) On the Windows machine, copy the files to and create a directory where the backups are to be saved (example C:\KBoxBackup).

3) Create a text file named "backup.txt" which contains the following:

open <kbox> (name or IP of your KBox)
type binary
mget kbox_*

replace “kbox” with the name or IP address of the KBOX (for example “open KBox1000).  Make no other changes to the file and save the file to the directory (example C:\KBoxBackup\backup.txt).  Rename "backup.txt" to "backup.scr".

4) Create a text file named "bkupkbox.bat" which contains the following:

@echo off
set scrptloc=%cd%

if "%1%"=="" goto usage

cd %1

for /F "usebackq tokens=2-4 delims=^/ " %%p in (`date /t`) do mkdir %%r%%p%%q
for /F "usebackq tokens=2-4 delims=^/ " %%p in (`date /t`) do cd %%r%%p%%q
echo backing up to %cd%
"%systemroot%\system32\ftp.exe" -s:"%scrptloc%\backup.scr"

goto end

echo usage:
echo    bkupkbox dir
echo examples:
echo    bkupkbox .
echo    bkupkbox \\server\share
echo    bkupkbox d:\

cd "%scrptloc%"
@echo on 

and save the file to the root directory where backup.scr is located (example C:\KBoxBackup\bkupkbox.bat).

5) Open a command prompt and navigate to the folder being used (example C:\KBoxBackup).

6) To run the backup, type in the following:


replacing the example of C:\KBoxBackup with the folder created in step 2.

7) The batch file will run the script (.scr file) and pull the backup files into the folder with the days date added (examplee: C:\KBoxBackup\20120211\).

These files will not truncate so it is important to delete the files on a regular basis so it does not fill the FTP destination.

For reference, the ftp commands to test manually are:

open <kbox> (name or IP of your KBox)
type binary
mget kbox_*

For the script to run automatically on a regular basis, the Windows Task Scheduler may be used to accomplish the task.

** These directions are for Windows 7, other Windows operating systems may have slightly different options. If you need assistance please use Support.Microsoft.Com for assistance in using the Task Scheduler. **

1) Go to (All) Programs ->Accessories ->System Tools ->Task Scheduler.

2) In the Task Scheduler tool bar click on “Action” then “Create Basic Task…”.

3) Type a name for the task (like “KBox Backups”) and a description then click “Next”.

4) Select the time for the script to run, then click “Next”.

5) Select the time for the task to run, then click “Next”.

6) Select “Start Program” then click “Next”.

7) Click “Browse” and navigate to the folder containing “bkupkbox.bat” (example C:\KBoxBackup\bkupkbox.bat).

8) In both the “Add arguments” and the “Start in” fields type in the folder path to where the “bkupkbox.bat” file is located (example C:\KBoxBackup), then click “Next”.

9) Click “Finish”.

10) Test by selecting “Task Scheduler Library” on the left hand pane, right click on the name of the task for the backup and select “Run”.

 ** If this fails to run please contact us via your normal support channel. We will be able to give support for the backup and for the scripts we provide as well as best effort support for the Task Scheduler part. **



  • can we use a similar process for the k2000 ? - MattWarr 10 years ago
  • The K2000 appliance uses a different method of storing data called de-duplication. A good explanation of de-duplication is found in Wikipedia but basically the technology allows great compression of data. De-duplication keeps one copy of any duplicated data and creates pointers to the one copy of data from any other references to the same data. For the appliance, the data is stored in a hash store and a manifest of files in the store is created. Therefore any backup of data from the hash store requires the entire stream of information be decompressed to its original file size and structure to be exported to the restore share. The whole file(s) may then be copied from the restore share to another storage medium. The K1000 stores data is a different fashion with the configuration settings and information in a single file, kbox_file.tgz, and the database in a single file, dbdata.gz which may be copied from the User Interface or by ftp. - KACE_Tammy 9 years ago
  • I am getting an error message when attempting to run the FTP.exe commands manually. I attempted this after the script didn't work.

    "500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this"

    I can connect to the kbox via Filezilla and manually copy over the files, but this is something that should be automated. - cholton 8 years ago
  • What operating system is executing ftp and what version is the appliance? From a command prompt, does the manual ftp process produce the same error?

    ftp K1000 (where K1000 is the hostname of the K1000)
    username: kbftp
    password: getbxf

    at the prompt, enter:

    type binary
    mget kbox_*
    quit - KACE_Tammy 8 years ago
This post is locked
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ