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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 11/02/2011 by: cmccracken
Orange Senior Belt

Please log in to comment
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?
Answered 11/02/2011 by: hutcha4113
Second Degree Blue Belt

Please log in to comment
0
I haven't put my backup script back into service yet (new PC) but mine has mget kbox_*

Casey
Answered 11/02/2011 by: cmccracken
Orange Senior Belt

Please log in to comment
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.
Answered 11/03/2011 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity