Amazing Charts User Board
Search

Most Recent Posts
Jon, are we there yet?
by Bert
Today at 12:39 AM
Flowsheets
by Bert
Yesterday at 11:39 PM
e-prescribing
by Bert
Yesterday at 11:35 PM
How to transfer my Laptop AC to Desktop PC?
by Bert
Yesterday at 11:33 PM
Now that we're SQL - best practice client server
by Bert
Yesterday at 11:10 PM
Orders
by Bert
Yesterday at 09:34 PM
Reviewing and signing off multiple labs
by CJHeitzmanDO
Yesterday at 09:29 PM
PRINTING ENTIRE CHART
by EzeeJim
Yesterday at 06:21 PM
I wish to see middle initial in pt search
by GAMA
11/18/08 09:36 PM
Jon has more power in SQL express-what do you want
by Bert
11/18/08 01:33 PM
Topic Options
Rate This Topic
#4715 - 01/06/08 03:15 PM Backup of encrypted backup files using batch file. ****
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Batch file backup for .enc files.

This is a batch file for those who have offsite backups. Generally, when you do an offsite backup, the encrypted file containing the databases of AC, are also stored on your hard drive in your AC folder. I recommend doing the offsite backup on a DIFFERENT computer than the "server computer" so that this file is on another computer for more redundancy.

While you can always copy and paste these files to another location, I have written a simple batch file to allow you to move this file to a flash drive or any other drive you wish to move it to. The code is as follows:

____________________________

xcopy "C:\Program Files\Amazing Charts\*.enc" "H:\AC Backups\" /D /V /G /H /R /K /Y
____________________________

where "C:\Program Files\Amazing Charts\ is the source location of your encrypted files, and "H:\AC Backups\" is the destination. It is likely that "H" will not be the drive letter of your Flash drive/Thumbdrive so substitue as needed. It can also be any other location.

Copy the two lines of code into a text file and save it with whatever name you wish. Save it to your desktop. Now, rename the file, Example.txt, wherer example = name given by you, to Example.bat. After this, you will have a batch file. Clicking on this the first time will copy ALL .enc files to the source location. Each time after, it will only copy the latest file.

Let me know if you have any questions.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#4718 - 01/06/08 07:50 PM Re: Backup of encrypted backup files using batch file. [Re: Bert]
bcmd Moderator Offline
Member

Registered: 07/11/07
Posts: 972
Loc: Arkansas
Thank you very much, Bert.

Let me repeat this back to you to see if I understand correctly. Sometimes I am dense about these kinds of things.

Open Notepad. Copy and paste the following text into Notepad:

xcopy "C:\Program Files\Amazing Charts\*.enc" "H:\AC Backups\" /D /V /G /H /R /K /Y

Change "H" to whichever drive I want to copy my encrypted files to each night.

Save the text file to my desktop, with a name to help me remember its function, such as "ACCRYPTO.txt" (leave off the quotes).

Close notepad, and rename the text file to "ACCRYPTO.bat" (leave off the quotes).

Then, each night, after I finish performing Amazing Charts Offsite Backup, I insert my flash drive, and double click on ACCRYPTO.bat.

A compressed and encrypted copy of my database will then be saved to my flash drive (or other drive of my choosing).

Have I got it right?
_________________________
Brian Cotner, M.D.
Family Practice

Top
#4720 - 01/06/08 10:48 PM Re: Backup of encrypted backup files using batch file. [Re: bcmd]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Yes, perfect.

You can go to a command prompt "Click Run, then type cmd and enter" and type

xcopy /? and it will give you a list of what the /D /V etc. do, in case you want to mix and match.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#4849 - 01/13/08 03:52 PM Re: Backup of encrypted backup files using batch file. [Re: Bert]
bcmd Moderator Offline
Member

Registered: 07/11/07
Posts: 972
Loc: Arkansas
This tip has now been beta tested, and it is working like a charm, thanks to Bert!

I told Bert that I would write a new, comprehensive step-by-step list, to help people successfully utilize this very handy tip.

Open Notepad. Copy and paste the following text into Notepad:

xcopy "C:\Program Files\Amazing Charts\*.enc" "H:\AC Backups\" /D /V /G /H /R /K /Y

Change "H" to whichever drive you want to copy your encrypted files to.

Save the text file to your desktop as a "batch file". Just hit "save", and call the file CRYPTO.bat, or FLASHBACKUP.bat (or WHATEVER.bat). If you do this step properly, an icon is created with a little gear in the middle.

If you double-click on this icon, any ".enc" (encrypted) file in the Amazing Charts folder will be copied onto your flash drive (or other drive of your choosing).

If you click on the icon and nothing is saved to the flash drive, you may not have a ".enc" file in the Amazing Charts folder! Just look in the folder.

TROUBLESHOOTING:

If you don't see an ".enc" file in the Amazing Charts folder, your Off-Site Backup may be saving the encrypted file to the wrong location. This is no problem. There is a little check-box in the main Off-Site Backup dialog box which says:

"Can't browse to the correct .enc file? Check this box to save the file in your Amazing Charts folder."

Check that box before you click "Upload," and your encrypted files will be saved in the Amazing Charts folder, where the batch file you have created can find them and copy them to your flash drive.
_________________________
Brian Cotner, M.D.
Family Practice

Top
#5625 - 02/14/08 08:16 AM Re: Backup of encrypted backup files using batch file. [Re: bcmd]
EricB Offline
Member

Registered: 01/10/08
Posts: 82
Loc: Manistee, Michigan
Our practice ended up doing something similar to what Bert describes above where we move the Amazing Chart files from our Network attached storage (NAS) device over to another computer hard drive on the local network. But we chose SyncBack SE rather than xcopy since we wanted a few more features

http://www.snapfiles.com/get/syncbackse.html

With this software, we set up a scheduled job to run nightly. The product can be setup to provide an email notification that a successful file copy has occurred which ensures it works every night (which we use of course). It also lets you select exactly how to copy the files using logic of which side to keep, when to do it, etc. It was about $30

From the resultant copy on the other machine, we then use that copy to backup remotely over to a MozyPro account. We do this every night for now but may scale this down in the future.

http://mozy.com/pro

MozyPro also provides email confirmation that files have been successfully backed up. It was about $60 to setup.
_________________________
Eric Beeman
Office Manager for Solo Practice
Manistee, MI

Top
#5626 - 02/14/08 01:36 PM Re: Backup of encrypted backup files using batch file. [Re: EricB]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Eric,

I like that. And, I know what you mean about scaling back sometimes. It's kind of like treating asthma. You put them on Flovent, Singulair, Albuterol, Flonase, Prevacid (for a moderate to severe asthmatic with an exacerbation), then you take one or two away after a couple of weeks.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#5654 - 02/17/08 03:11 PM Re: Backup of encrypted backup files using batch file. [Re: Bert]
Divak Offline
Member

Registered: 06/26/07
Posts: 12
Loc: CO, USA
We are using idrive online back up. The program backs up every day. It is free upto 12 giga bytes. So far we are happy with that.
http://www.idrive.com, check it out.
Divak
_________________________
Indira Kedlaya, MD
Internal Medicine & Geriatrics

Top
#5695 - 02/20/08 08:01 PM Re: Backup of encrypted backup files using batch file. [Re: Divak]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Divak,

Is that 12 or 2 GBs?
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#5721 - 02/21/08 10:04 PM Re: Backup of encrypted backup files using batch file. [Re: Bert]
Divak Offline
Member

Registered: 06/26/07
Posts: 12
Loc: CO, USA
Bert,
It is free 12 GB if you send a message about i-drive to contacts in your address book. Otherwise 2 GB.
Divak
_________________________
Indira Kedlaya, MD
Internal Medicine & Geriatrics

Top
#5785 - 02/25/08 07:32 AM Re: Backup of encrypted backup files using batch file. [Re: Divak]
Wcoghill Offline
Member

Registered: 10/27/04
Posts: 551
Loc: New York, NY
ok, so it you refer 5 people via email (regardless of whether they get idrive) you get an extra 10 gb. not bad.
_________________________
Wayne
New York, NY
Hey, look! A Bandwagon! Let's jump on!

Top
#5855 - 02/29/08 07:20 PM Re: Backup of encrypted backup files using batch f [Re: Wcoghill]
EricB Offline
Member

Registered: 01/10/08
Posts: 82
Loc: Manistee, Michigan
The main thing to remember, whether you use Mozy, idrive or Carbonite, is to test the actual restore of your files.

If you use these services to back up your amazing charts db and imported items, be sure to restore the files to another location, reset the path in amazing charts, use those files to confirm that it worked (preferably once per month).

If you really wanted to see a lengthly discussion about pros/cons, see this website. careful though on checking dates of the posts as some of these are older comments based on past versions

http://lifehacker.com/software/lifehacke...nite-302597.php


Edited by EricB (02/29/08 07:23 PM)
_________________________
Eric Beeman
Office Manager for Solo Practice
Manistee, MI

Top
#6123 - 03/13/08 12:55 PM Re: Backup of encrypted backup files using batch f [Re: EricB]
Santos Offline
$this_title

Registered: 09/10/06
Posts: 23
Loc: San Marcos, TX
We do something very similar at our practice, but we backup the database files every half day onto a flash drive using the following text BATCH file I wrote for my staff to use:

@ECHO OFF
CD\PROGRA~1\AMAZIN~1\
ECHO Make sure flash drive is in USB port on front of your computer.
ECHO Back-up process takes approximately 2 minutes to back-up 6 files.
PAUSE
CLS
ECHO Thank you.
ECHO BACKING UP AMAZING CHARTS DATABASE FILES...
ECHO 6 files to copy
ECHO Copying files... Please do NOT remove the flash drive device in drive E
ECHO Please wait
COPY AmazingCharts.mdb F:\BACKUP\
COPY AmazingMeds.mdb F:\BACKUP\
COPY billing.mdb F:\BACKUP\
COPY codes.mdb F:\BACKUP\
COPY import.mdb F:\BACKUP\
COPY schedule.mdb F:\BACKUP\
CLS
ECHO BACKUP COMPLETE
ECHO Thank you for taking the time to back-up Amazing Charts
ECHO It is now safe to remove the flash drive device in drive F
PAUSE
_________________________
Alberto Santos III, DO
Southwest Family Medicine
San Marcos, TX

Top
#6135 - 03/13/08 06:32 PM Re: Backup of encrypted backup files using batch f [Re: Santos]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Hey! Cool .bat. I tried it. Don't you love batch files? Sometimes it's easier to use 3rd party windows-based programs, but batch files seem more programmish (sp?). \:\)
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#8828 - 06/21/08 11:37 AM Re: Backup of encrypted backup files using batch f [Re: Bert]
bcmd Moderator Offline
Member

Registered: 07/11/07
Posts: 972
Loc: Arkansas
I wanted to bring this post to the top of the forum because it came up in Adam's talk at Branson and people were asking about it.

Thanks again to Bert and Santos for coming up with these useful batch files.

If anybody has any problems using these, just post your concerns.
_________________________
Brian Cotner, M.D.
Family Practice

Top
#8838 - 06/21/08 03:06 PM Re: Backup of encrypted backup files using batch f [Re: bcmd]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Yes, I purposely asked Adam not to do batch files in his talk on the off chance I could make it as it would as to my talk. It is but one more way of backing up similar to SyncToy or many of the other sync programs users have been kind enough to post on here. What I thought would be cool would be to do all your other backups whether it be to a flash drive, CD, external hard drive or whatever but also do a batch drive or sync drive to another computer on your network. Then if your server or pseudoserver went down, you could quickly share out the other files and you would only be missing a half day's work or you could copy the ones from the server if you could access it. See next post.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#8839 - 06/21/08 03:08 PM Re: Backup of encrypted backup files using batch f [Re: Bert]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Adam was at a FP conference down state and called me about his talk. He basically did it while on the phone. When he sent me the slides, I was completel in awe of its simplicity yet thoroughness. It should be on the Internet. Adam is the backup god. Well, after me and Vinny, of course.

Riddle: And a stupid one at that:

What's the hardest part of restoring from Adam's backups if his server goes down?
Deciding which backup to restore.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#9650 - 07/11/08 04:46 PM Re: Backup of encrypted backup files using batch f [Re: Bert]
siri Offline
Member

Registered: 02/08/08
Posts: 4
Loc: Indiana
Adam,
I met you at the cnference and you showed me hoe to save the batch file on your desk top. Thanks for your help. I don't know what I am doing wrong. I have tried this on my server and on my desktop(different from my server) but the problem I am having is that once I save it as a .txt document the name on the desktop does not say ---.txt. it -only says---. So when I change it to .bat it still is a text document and I do not see the gear. Should I be changing something on my computer, the way I save files etc. I am using Windows XP on my computers.

Top
#9654 - 07/11/08 06:24 PM Re: Backup of encrypted backup files using batch f [Re: siri]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
siri,

The problem is you have Windows set to hide file extensions. You cannot make a batch file without extensions.

To correct this do the following:

Open My Computer or Windows Explorer
Click on Tools on the toolbar
Chooes Folder Options from the dropdown menu
Choose the View tab from the Folder Options window
Uncheck "Hide extensions for known file types"

FYI: I generally select "Show hidden files and folders" by default as well.

Now, save your notepad as a text file, and you will see Example.txt which you can then rename to Example.bat and see the icon with the gear on it.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#9702 - 07/13/08 02:39 PM Re: Backup of encrypted backup files using batch f [Re: Bert]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
So, were you able to get it to work, Siri?
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#9842 - 07/18/08 05:39 PM Re: Backup of encrypted backup files using batch f [Re: Bert]
siri Offline
Member

Registered: 02/08/08
Posts: 4
Loc: Indiana
Bert, sorry for not getting back right away. We are getting ready to go on a long vacation and I have been really busy. I tried what you suggested and it worked well to turn the icon to a wheel. When I actually tried to back it up nothing happened. So i troubleshot it and sure enough I did not have an encryptred file in AC. So i checked the box that said save a copy in my AC. the I did the back up again and now I had an enc. file. But the icon still does not do a back up for me. HELppppppp!

Top
#9843 - 07/18/08 05:51 PM Re: Backup of encrypted backup files using batch f [Re: siri]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
siri,

The best thing to do is copy and paste the code you are using in your notepad here. Then tell me what it is you are trying to copy, i.e. \\Server\Amazing Charts\xxxxxxx.enc to C:\Backup\

With this information, I should be able to see if your batch file's syntax is correct.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#9844 - 07/18/08 10:48 PM Re: Backup of encrypted backup files using batch f [Re: Bert]
siri Offline
Member

Registered: 02/08/08
Posts: 4
Loc: Indiana
I copied and pasted the code from this thread above. i am pasting it here for you again.
xcopy "C:\Program Files\Amazing Charts\*.enc" "H:\AC Backups\" /D /V /G /H /R /K /Y
____________________________
instead of H , I used E which is the drive that my back up disk is connected to.

Top
#9852 - 07/19/08 04:21 PM Re: Backup of encrypted backup files using batch f [Re: siri]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Is "E" an external USB drive?
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#9853 - 07/19/08 04:23 PM Re: Backup of encrypted backup files using batch f [Re: siri]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Originally Posted By: siri
I copied and pasted the code from this thread above. i am pasting it here for you again.
xcopy "C:\Program Files\Amazing Charts\*.enc" "H:\AC Backups\" /D /V /G /H /R /K /Y
____________________________
instead of H , I used E which is the drive that my back up disk is connected to.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top
#9854 - 07/19/08 04:23 PM Re: Backup of encrypted backup files using batch f [Re: Bert]
Bert Moderator Offline
Member

Registered: 09/27/03
Posts: 2109
Loc: Bangor, Maine
Moved to PM.
_________________________
Bert
I bet you think this post is about you. Don't you, don't you?

Top


Moderator:  bcmd, Bert, Lauer_DO, vinnymeyer 
Forum Stats
1305 Members
5 Forums
1316 Topics
11051 Posts

Max Online: 25 @ 05/15/07 12:32 PM
Who's Online
1 Registered (blsprague), 4 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Bert 2109
hockeyref 1499
bcmd 972
Wcoghill 551
lstrouse 437
Lauer_DO 412
Roy 347
vinnymeyer 305
joseph2 301
rainy 271
Newest Members
Dan, malverndoc, njdocb, Lam, modster
1305 Registered Users