Backup to encrypted 7zip file

Geert Janssens geert.gnucash at kobaltwit.be
Sun Sep 14 10:36:32 EDT 2014


Thanks for sharing your nice script!

Geert

On Sunday 14 September 2014 12:22:24 Chris Good wrote:
> Hi GnuCash users,
> 
> 
> 
> Here's a batch file I hope some Windows users may find useful.
> 
> 
> 
> I back up my GnuCash files to Dropbox, but just in case, I'm not happy
> putting my unencrypted data in the cloud, so I cannot just save my
> GnuCash data file to the Dropbox folder.
> 
> 
> 
> This script creates an AES-256 encrypted 7zip file in my Dropbox
> folder.
> 
> It contains my GnuCash data file (xxx.gnucash),
> 
> my saved custom report configuration file (saved-reports-2.4),
> 
> and the settings file (xxx.gcm).
> 
> 
> 
> You can install  7zip (free) from http://www.7-zip.org/
> 
> 
> 
> Each time after I finish entering data into GnuCash (&after GnuCash is
> closed), I just run the batch file (double click on the new icon on
> the desktop), enter the password I want to encrypt with, and check
> for any error messages. The encrypted file is added to the Dropbox
> folder, which is just a folder on my PC, and within seconds, Dropbox
> has copied it to the cloud.
> 
> 
> 
> You could probably use this with other cloud storage services also, or
> just for backing up GnuCash to your PC if you don't use a cloud
> storage service.
> 
> 
> 
> The encrypted 7zip file has a name like
> GnuCashMyDataFile_yyyymmdd_hhmm.7z
> 
> where MyDataFile is the name of your GnuCash data file and
> 
> yyyymmdd_hhmm is the year,month,day, hour,min.
> 
> 
> 
> Note: If you run it twice within the same minute, the 2nd encrypted
> file will overwrite the first as they have the same name.
> 
> 
> 
> This script is provided free in the hope it will be useful, but I
> accept no responsibility for any problems and there is no warranty!
> 
> Please test to ensure it works for you!
> 
> 
> 
> I'm using Windows 7 and GnuCash 2.6.2 but I believe this script should
> work for at least Windows XP, 7 & 8, and GnuCash 2.4.x thru 2.6.3.
> 
> 
> 
> To install:
> 
> 
> 
> Right click on the Windows desktop, New, Text Document.
> 
> Rename the New Text Document.txt on your desktop to, say,
> BackupGnuCash.bat
> 
> (Be careful with the extension if you have the default option 'Hide
> extensions for known file types' ticked.  - it must be .bat, NOT .txt.
> 
> You can change this option in Windows Explorer: Organise, Folder &
> search options, View tab, Advanced settings)
> 
> 
> 
> Right click on BackupGnuCash.bat, Edit, and it should open the empty
> document in Notepad.
> 
> Copy the following script into the Notepad window.
> 
> Edit all the lines after lines with 'Following' on them to customise
> for your particular folders and GnuCash data file name.
> 
> Save the file (Control-S), close Notepad
> 
> 
> 
> ############ batch file follows- do not include this line
> ########################
> 
> 
> 
> @echo off
> 
> echo.
> 
> echo Backup GnuCash to 7zip AES-256 encrypted file in DropBox
> 
> echo.
> 
> 
> 
> rem 14/09/2014 CRG Created for any GnuCash user.
> 
> 
> 
> rem Following is GnuCash data file drive
> 
> set GcDrive="C:"
> 
> 
> 
> rem Following is GnuCash data file folder
> 
> set GcDir="\Users\cgood\GnuCash"
> 
> 


More information about the gnucash-user mailing list