/build/static/layout/Breadcrumb_cap_w.png

FTP Backup - Automate

Hi Everyone,

I am trying to get offboard FTP working on our KBOX 1100 (soooo much easier in the 2100) but am running into issues. At present I am trying to create a script that will connect to the 1100 and download the backup files.

My Script looks like this at present:

open kbox
user
kbftp
getbxf
type binary
mget *.*
close
quit

I am testing it on my Windows 7 Laptop using ftp -s:ftp.scr. I have verified that it runs, but for some reason it breaks at the password piece. I was following MS documentation, etc. on how to automate a FTP batch file...thought I had it right...but I guess not.

I have manually ftp'd in using the credentials above, so I know they work.

Any thoughts as I am stumped?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: GillySpy 13 years ago
7th Degree Black Belt
1
If you are using mget make sure you turn off prompting (prompt command) first.

I will also note here that in the latest versions kbox_dbdata.gz points to the real backup file which has the date in it's name.

There is an assumption here that kbox_dbdata.gz file is pointing to the latest backup. This is not necessarily true. If you have been having backup problems then it may point to an older version. By default your box keeps 7 days of database backups and one file backup. Check the backup and restore (Control Panel->backup and restore) for more control over that.
Posted by: cmccracken 13 years ago
Orange Senior Belt
0
Add USER in front of your user ie:

open kbox
USER myUser
password

and add a -n to your ftp command ie: ftp -n -s:ftp.scr.

Casey
Posted by: hutcha4113 13 years ago
Second Degree Blue Belt
0
Ok. That worked. I had tried that format, but did not have the -n switch.

What files should I download as an Offboard backup? I was going to try to do a mget (which does not appear to be working...asks me yes/no to file), then thought I would just do it via file extension.

How is everyone else doing this?
Posted by: cmccracken 13 years ago
Orange Senior Belt
0
I haven't put my backup script back into service yet (new PC) but mine has mget kbox_*

Casey
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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