Author Topic: PINNED: Create a backup of your recipes  (Read 33135 times)

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5250
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
PINNED: Create a backup of your recipes
« on: September 13, 2003, 04:01:09 PM »
Here's the quick method to create a backup file containing all of your recipes...

1. Select the "My Recipes" view
2. Choose the "Export As" command on the "File" menu.
3. Enter a file name.
4. Copy the file to a CDROM or Floppy later and put it in a safe place in case you have a total system meltdown.

Note - if you've made changes to one of the ingredient, equipment or style databases you can also make backups of those by first selecting the view (Hops for example) and then using the Export As command.

That's it!

Brad
« Last Edit: November 10, 2004, 02:52:15 PM by admin »
Get a free trial of BeerSmith 3 here

Offline ibrewalot

  • BeerSmith Master Brewer
  • ****
  • Posts: 69
Re: Create a backup of your recipes
« Reply #1 on: October 08, 2003, 04:53:16 PM »
Quick question...I highlighted all the logs in my brewlog and saved them off with the file/export pulldown.  That created a file about 560kb.  Then I clicked in the "my recipes" area to save off the recipes too, but then I got a file that had the recipes AND the brewlog entries and the file was about double in size (which you'd expect).  If I select "my recipes", do I get both the recipes AND the brewlogs saved so I'm saving the logs twice this way?  

I've only been putting my brewlogs out on the web for recipe exchanging and wanted to make sure what I'm putting out there is the right thing, and doesn't have 2 copies of each.

Thanx a bunch.

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5250
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: Create a backup of your recipes
« Reply #2 on: October 09, 2003, 12:00:25 AM »
Hi,
 I believe if you use the "File/Export" command it saves the current view completely.  Therefore if you are currently viewing "My Recipes" it will save everything under it (i.e. all folders and recipes) as well.

 However, if you are viewing a subfolder such as your brew log and then do a "File/Export" it will only save items under your brewlog.

 Finally, you can export only selected items by selecting them individually (either folders or recipes -- hold down the Control key or Shift key while selecting to multiple select)  and then use the "Save Selected Items" on the "Actions" menu -- this will only save what is selected.

 You can always check what you have saved to a file by just double clicking on the saved file from Windows file explorer-- this will open the file in BeerSmith so you can look at it.

Cheers!
Brad
Get a free trial of BeerSmith 3 here

bob-beer

  • Guest
Re: Create a backup of your recipes
« Reply #3 on: September 19, 2004, 08:23:07 PM »
I write them on PAPER, photocopy them and put them in an folder.
And when I get a chance [I am always brewing] I load them on the PC and burn them to CD.
I am new here, I am from Australia.
At the moment I am brewing 2 Baverian wheat beers, 1 Canadian blond beer and one wine, I just bottled a stout, my recipe.

ddwbrew01

  • Guest
Re: PINNED: Create a backup of your recipes
« Reply #4 on: April 30, 2007, 09:42:29 AM »
I have a nightly backup of important files to another hard drive.  I consider recipes important.   :)

If I were to save "C:\Program Files\BeerSmith\*.bsm", would I have all of the files I need to get back to where I was if I had to re-install it?  Is there a way to have the default location of the 'working' files in another location (like "My Documents\BeerSmith") so it can be included in a general backup?

Thanks.

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5250
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: PINNED: Create a backup of your recipes
« Reply #5 on: May 01, 2007, 09:38:50 PM »
No,
  Unfortunately there is currently no way to adjust the data directory, other than to just install the program to a different location.  I do think it would make a nice addition for a future upgrade however.

Thanks,
Brad Smith
Get a free trial of BeerSmith 3 here

Offline jrehmert

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 4
Re: PINNED: Create a backup of your recipes
« Reply #6 on: November 20, 2007, 09:36:07 AM »
I wrote a simple vbscript (below) that can be modified to backup the standard install location for beersmith at any point in time - it assumes that one has WinRAR installed in its standard location... Actually, I have another vbscript that I compiled into an exe and I use it to start beersmith, then create a backup just after I close it...

For this the srcFold is the standard install directory, but can be modified and the bakFold is the backup folder - for me Z:\ is mapped to my server which is uing RAID 5 and tape backups, so I have lotsa backups.

If some think this is overkill, it might be, but I'm not going to lose my recipes ever again!! (yup, I lost about a year's worth of recipes when my last laptop HDD kicked the bucket and, trust me, IT SUCKED AND STILL SUCKS!!!)

To use the script, copy the code below and paste it into a text file, then save the text file as <whatever you want>.vbs. Then, in order to run it, use cscript <file folder>\<whatever you named it>.vbs

Code: [Select]
bakFold = "Z:\_BACKUPS"
srcFold = "C:\Progra~1\BeerSmith"

sYear = Year(Now())
sMonth = Month(Now())
sDay = Day(Now())
sHour = Hour(Now())
sMinute = Minute(Now())
sSecond = Second(Now())

Randomize()
rNum = Int(1000000 * Rnd())

Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oDest = oFSO.GetFolder(bakFold)
Set oShell = CreateObject("WScript.Shell")

oShell.Run srcFold & "\BeerSmith.exe", 1, True

If oDest.Type = "File Folder" Then
oShell.Run "C:\Progra~1\WinRAR\rar.exe a -m5 -r -ta" & _
sYear & sMonth & sDay & sHour & sMinute & sSecond & " " & _
bakFold & "\BeerSmith_" & sYear & "-" & sMonth & "-" & _
sDay & "_" & rNum & ".rar " & srcFold, 1, True
'WScript.Echo "C:\Progra~1\WinRAR\rar.exe a -m5 -r -ta" & _
' sYear & sMonth & sDay & sHour & sMinute & sSecond & " " & _
' bakFold & "\BeerSmith_" & sYear & "-" & sMonth & "-" & _
' sDay & "_" & rNum & ".rar " & srcFold
End If

Set oShell = Nothing
Set oDest = Nothing
Set oFSO = Nothing
« Last Edit: November 20, 2007, 09:59:34 AM by jrehmert »

Fingers

  • Guest
Re: PINNED: Create a backup of your recipes
« Reply #7 on: December 08, 2008, 09:49:05 PM »
This procedure doesn't seem to be working for me. I get 'An unknown error has occurred while accessing E:\recipes.bsm' when I try to import the file back into Beersmith.

I had backed up the recipe.bsm file right out of the folder and it was over 3.6G. When I first did the export command The file I got was under 400K. The next time I did it it was 1.3M. My E:\ drive is a flash drive. I can import the file I saved manually no problem.

I'm set properly to 'My Recipes' and I select 'Export As' under the file menu, ensure 'All items in the current view' is selected and then just save it as the default recipes.bsm to my flash drive.

I'm running Windows XP home with service pack 3.

Any ideas? I don't think it's a big problem because I can do my backup manually, but I'm afraid that if I don't follow your directions there may be something missing if I have to use it to restore my files. I have a lot of recipes stored.

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5250
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: PINNED: Create a backup of your recipes
« Reply #8 on: December 09, 2008, 01:34:03 AM »
Hi,
  Copying the file "recipes.bsm" from the BeerSmith directory will work just fine as well.  In fact if you want to be safe just make a backup of the whole BeerSmith directory periodically.

  I don't know why the export would not work, but 3.6 GB is a huge file.  I would recommend considering breaking it into smaller files as you are probably running into 32 bit limitations (BeerSmith is a 32 bit windows app and has a limited file size of around 2GB addressable I think).

  You do need to be careful under Vista, since the recipe files are actually stored in a "compatability" directory if you are not running as an administrator.  Go to the BeerSmith directory and you will see the "compatability" icon on the toolbar.

Cheers,
Brad
Get a free trial of BeerSmith 3 here

Offline jrehmert

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 4
Re: PINNED: Create a backup of your recipes
« Reply #9 on: March 19, 2012, 09:15:36 AM »
Here's a little VBScript I created that starts BeerSmith (currently set for BeerSmith 2, but could easily be modified for v1), then backs up all bsmx files to a folder in the default dropbox location.  I put the VBScript in the root of my Dropbox and then created a shortcut on my desktop that executes C:\Windows\System32\wscript.exe //nologo //B c:\users\<my username>\my documents\my dropbox\runbeersmith.vbs" and it works like a charm.  The script is documented inline, so anyone can open/modify as needed using a standard text editor.  Here's the code (I'm sure not the best, most efficient code, but it does what I need):
Code: [Select]
' RUNS BEERSMITH AND BACKS UP BSMX FILES AFTER CLOSED

Set oShell = CreateObject("WScript.Shell")
' LOCATION OF BEERSMITH EXECUTABLE - USING SHORT FILES AVOIDS DOUBLE QUOTE NIGHTMARES
oShell.Run "C:\Progra~2\BeerSmith2\BeerSmith2.exe", 1, True

' GETS USERNAME TO USE IN DROPBOX LOCATION (DEFAULT)
set oNet = CreateObject("WScript.Network")
oUser = oNet.UserName

' GETS DATE AND TIME FOR USE IN BACKUP FILE NAME AND LOGFILE
sNow = Now()
sYear = Year(sNow)
sMonth = twoDigits(Month(sNow))
sDay = twoDigits(Day(sNow))
sHour = twoDigits(Hour(sNow))
sMinute = twoDigits(Minute(sNow))
sSecond = twoDigits(Second(sNow))

' FOLDER WHERE BEERSMITH IS INSTALLED
srcFolder = "C:\Progra~2\BeerSmith2"
' FILE EXTENSION(S) TO BACKUP
srcFiles = "*.bsmx"
' LOCATION OF 7-ZIP (DEFAULT)
zipExe = "C:\Progra~1\7-Zip\7z.exe"
' OPTIONS TO PASS TO 7-ZIP TO CREATE A ZIP FILE (MOST PORTABLE)
zipOptions = " a -tzip "
' FOLDER TO SAVE ZIP FILE
zipFolder = "C:\Users\" & oUser & "\Documents\MyDrop~1\BeerSmithBak"
' FILE NAME FOR ZIP FILE
zipFile = "BeerSmith2_" & sYear & sMonth & sDay & "-" & sHour & sMinute & sSecond & ".zip "
' LOG FILE NAME
logFile = "_log.txt"

Set oFSO = CreateObject("Scripting.FileSystemObject")

' IF BACKUP FOLDER (zipFolder) DOES NOT EXIST, THEN CREATE IT
If Not oFSO.FolderExists(zipFolder) Then
  set oDest = oFSO.CreateFolder(zipFolder)
End If

' SET THE DESTINATION FOLDER TO zipFolder VARIABLE
Set oDest = oFSO.GetFolder(zipFolder)

' DESTINATION SHOULD BE A FOLDER BASED ON ABOVE, BUT JUST FOR GIGGLES, MAKE SURE THE DESTINATION IS A FOLDER
If oDest.Type = "File folder" Then
  ' CREATE OR OPEN THE LOG FILE FOR APPENDING
  Set oWrite = oFSO.OpenTextFile(zipFolder & "\" & logFile, 8, True)
  ' CREATE THE ZIP FILE
  Set oExec = oShell.Exec(zipExe & zipOptions & zipFolder & "\" & zipFile & srcFolder & "\" & srcFiles)
  ' WRITE THE FOLLOWING LINES TO THE LOG FILE FOR READABILITY/REFERENCE
  oWrite.WriteLine "******************************"
  oWrite.WriteLine sMonth & "/" & sDay & "/" & sYear & " " & sHour & ":" & sMinute & ":" & sSecond
  oWrite.WriteLine "******************************"
  oWrite.Write oExec.StdOut.ReadAll
  oWrite.WriteBlankLines(1)
  oWrite.WriteLine "******************************"
  oWrite.WriteBlankLines(4)
End If

' CLOSE NICELY
Set oShell = Nothing
Set oDest = Nothing
Set oFSO = Nothing

' MAKE SURE THERE ARE TWO DIGITS IN THE MONTH, DAY, HOUR, MINUTE & SECONDS VARIABLES TO MAKE SORTING WORK RIGHT
Function twoDigits(iInput)
If iInput < 10 Then
twoDigits = "0" & iInput
Else
twoDigits = iInput
End If
End Function

Offline lailhomebrew

  • BeerSmith New Brewer
  • *
  • Posts: 1
  • BeerSmith 2 Rocks!
Re: PINNED: Create a backup of your recipes
« Reply #10 on: August 30, 2012, 10:47:56 AM »
One of the slickest features of the latest BeerSmith software is the Cloud!  It's a great way to backup your recipes.  My main computer just died and I was so glad I had copied my best recipes to the Cloud.  All I had to do was copy them back to BeerSmith on our second computer.  Thanks Brad!

Offline uSlackr

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 11
Re: PINNED: Create a backup of your recipes
« Reply #11 on: February 09, 2015, 07:56:24 PM »
I moved my BeerSmith document directory into my OneDrive folder tree. Now it is sync'd off site.
\\uSlackr