Backup Quickbook data to a web site via FTP

Posted on 2006-07-04
Medium Priority
Last Modified: 2013-11-29
This is somewhat of a two-part question, although the important part is the FTP question.

I want to backup QuickBooks data to a web site (or most likely a passworded sub-folder of the web site).

Can anyone recommend an FTP program where I could put an icon on a desktop, have someone click it, and that program automatically ftp the program from the computer to the web site? (Or another very, very easy way, as the person having to do the backup is not very computer literate at all).

And related to the above, is there any difference between the QuickBooks data file that you work on, and the file created when you go to QuickBooks's menu and click on "back up company."

On the second part, based on my experience, I say it is the same file, but someone else is trying to tell me the files are actually different. And it also matters as to where the FTP program will get the data to transfer and the number of steps the person doing the backup will have to go through.


Jay Banks

Question by:usurper_ii
  • 2
  • 2

Author Comment

ID: 17038327
Reading my question, let be be a little clearer:

automatically ftp the program from the computer to the web site?

That part should actually read:

automatically ftp the QuickBooks data file from the computer to the web site?


LVL 97

Expert Comment

by:Lee W, MVP
ID: 17038351
I'm not sure the difference between files, but I see problem in backing up either via FTP.

Now, keep in mind that FTP is an UNENCRYPTED protocol and though unlikely, it would be possible for someone to steal the file by sniffing the line.  I would strongly recommend compressing the file with a good encryption/compression program.  At the least, zip it with a password.

Then for the FTP part, you can just write a script and ftp the file with that.  And why make the user do it - setup a scheduled task so it happens automatically.  The built in FTP program is easily scriptable.
LVL 97

Accepted Solution

Lee W, MVP earned 1000 total points
ID: 17038410
Here's a sample script:
@echo off
Set QuickBooksPath=x:\quickbooks
set mm=%date:~4,2%
set dd=%date:~7,2%
set yyyy=%date:~-4%
set hh=%time:~0,2%
set min=%time:~3,2%
if "%hh%" == " 0" Set hh=0%hh:~-1%
if "%hh%" == " 1" Set hh=0%hh:~-1%
if "%hh%" == " 2" Set hh=0%hh:~-1%
if "%hh%" == " 3" Set hh=0%hh:~-1%
if "%hh%" == " 4" Set hh=0%hh:~-1%
if "%hh%" == " 5" Set hh=0%hh:~-1%
if "%hh%" == " 6" Set hh=0%hh:~-1%
if "%hh%" == " 7" Set hh=0%hh:~-1%
if "%hh%" == " 8" Set hh=0%hh:~-1%
if "%hh%" == " 9" Set hh=0%hh:~-1%
set filename=%yyyy%%mm%%dd%.%hh%%min%.zip
Echo Executing at %time% on %date%  >> %temp%\remote.log
Echo. >> %temp%\remote.log
cd /d %QuickBooksPath%
echo zip -9 "%temp%\%filename%" "MyCompany.QBW" >> %temp%\remote.log
zip -9 "%temp%\%filename%" "MyCompany.QBW" >> %temp%\remote.log 2>>&1
If Exist "%temp%\remote.scr" del "%temp%\remote.scr"
echo username>>"%temp%\remote.scr"
echo password>>"%temp%\remote.scr"
echo cd /path/to/upload/file/to>>"%temp%\remote.scr"
echo lcd %temp%>>"%temp%\remote.scr"
echo bin>>"%temp%\remote.scr"
echo put %filename%>>"%temp%\remote.scr"
echo bye>>"%temp%\remote.scr"
cd /d %temp%
Echo  FTP Started uploading at: %time%
ftp -s:remote.scr ftp.site.com > NUL
Echo FTP Finished uploading at: %time%
If Exist "%filename%" del "%filename%"
gbmail -v -to myemail@MyCompanycorp.com -file %temp%\remote.log -from myotheremail@MyCompanycorp.com -s MyCompany-Remote-Backup -h my.smtp.server
If Exist "%temp%\remote.*" del "%temp%\remote.*"
cd %temp%
Note: this script would use a command line utility, gbmail, to email you a log of what happened.  In addition, it would use the free InfoZip command line zipping program (which does NOT have encryption abilities) to zip the file.  You should really consider using another program that is scriptable to zip and encrypt the file.

Author Comment

ID: 17050629
I don't know if it is just me or what, but the first few times I ran this, it acted kind of flaky. The main thing I noticed is that it doesn't seem to log all of the things the script file is telling it to log in the log file.

That being said, however, I did manage to adapt it to a registered version of WinZip with the command line add-on that supports both password protected zip files and encryption from the command line.

Right now, I have the gbmail part commented out, but I downloaded gbmail and will play with that part later.

So far, even though I had to put a lot of time into getting it to work the way I wanted, it does seem to do what I asked for...and I can already think of useful things I can do with this script.

So I must say *thanks* for the help and I will accept your answer.

As a side note, many years ago, back when I used to have a WildCat BBS, I used to have a batch file that could zip files up by date. I lost the script over the years and never could figure out how I did it. I have been doing it now with a little DOS program I found somewhere. I'm happy to have my hands back on script that will do it straight from a batch file without having to call on another program.



Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This program is used to assist in finding and resolving common problems with wireless connections.
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question