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?
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)
Please log in to answer
Posted by:
GillySpy
13 years ago
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.
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
Posted by:
hutcha4113
13 years ago
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?
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.