/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


offsite backups on k1000 Version: 6.2.109330

12/08/2014 1738 views
i had an automatic offsite backup going on 
i upgraded and it appears those have stopped, does anyone have any documentation on how to set it up with this version?
1 Comment   [ + ] Show comment

Comments

  • As the link below shows, I would verify this is still checked:

    Enable FTP by going to K1000 Settings > Security Settings > [Edit Mode] > Enable backup via FTP > Set Security Options


Community Chosen Answer


  • it works at my box like a charm since years ;) (also on the 109330)
    Just to mention one thing. You need fill in into the task scheduler the environment too (set it to the location where the batch file is located, or only the folders will be created)
    • thank you
      this is what was happening the folders were created but no files

All Answers

0
This is what I use...

Create this .bat file:

REM @ECHO OFF

forfiles /p "X:\K1000_Backup\Backups" /s /m *.* /d -2 /c "cmd /c del @file"

ECHO option batch abort > X:\K1000_Backup\KACE_BACKUP.tmp
ECHO option confirm off >> X:\K1000_Backup\KACE_BACKUP.tmp
ECHO open ftp://kbftp:KBFTPpassword@KBOX IP >> X:\K1000_Backup\KACE_BACKUP.tmp
ECHO cd / >> X:\K1000_Backup\KACE_BACKUP.tmp
ECHO option transfer binary >> X:\K1000_Backup\KACE_BACKUP.tmp
ECHO get *_k1_dbdata.gz *_kbox_file.tgz "X:\K1000_Backup\Backups\" >> X:\K1000_Backup\KACE_BACKUP.tmp
ECHO close >> X:\K1000_Backup\KACE_BACKUP.tmp
ECHO exit >> X:\K1000_Backup\KACE_BACKUP.tmp

"X:\K1000_Backup\WINSCP.COM" /console /script="X:\K1000_Backup\KACE_BACKUP.tmp"
DEL X:\K1000_Backup\KACE_BACKUP.tmp

exit


This uses WinSCP wich is located in X:\K1000_Backup and creates the backups in X:\K1000_Backup\Backups
It keeps a monthly backup plus 2 most current days. You can backup more days by changing the second line after the /d.

Make a scheduled task to run the .bat file and you should be good.

WinSCP Link: Click Here
Answered 12/08/2014 by: h2opolo25
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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