I know this is a little late but this does exactly what you asked
I am no longer working with aloha we have moved to onePOS
(I hate onePOS, but that's what I am stuck with)
This worked fine with Aloha 6.7 2 years ago and as long as they still have winhook.bat should work today
If I understand last post, it seems to me that what you are doing would archive the whole aloha folder every day
For me that would be thousands of dated folders every day, LOTS of data EVERY day
I will show you how I did it on Windows 7 32bit and there are 7-zip versions that run in batch
files on Windows 10 64bit (syntax may change)
Aloha runs this automatically after each end of day via the Aloha winhook.bat
If you use Aloha Gift Cards there may be another batch file name that runs, it will be listed
in the system area of Aloha Manager. Sometimes that file is called from winhook.bat
I used an idrive account to backup my folder defined by archdir (archdir is set in winhook.bat)
In that folder I place a zip file of whole aloha folder made manually with a name like:
2012-01-31FULL.ZIP This file is large but only gets backed up once (until you replace it after an upgrade)
(7-zip filemanager is an excellent open source way to do this I have also used totalcommander)
idrive backup (or other cloud backup of your choice) should archive the archdir folder each day
this would be a tiny amount daily, just the 1 zipped dated folder which also contains edc.ini
(I found out the hard way to ALWAYS have a current copy of edc.ini)
winhook.bat is in the bin folder, when it is executed after EOD it knows the latest dated folder
------------- winhook.bat in the bin folder---------
rem this uses 7-zip (7z.exe) to create zip archive (z-zip is easier to find than info-zip and pkzip)
rem you do not have to install 7-zip but you do need to place a copy of 7z.exe in your Windows
rem folder or windows\system32 folder unless you want to include the full path to 7z.exe on command line
rem 7z.exe is found in the folder that z-zip is installed into
rem *** Define your archive drive and folder ***
rem---- beware, I have seen problems with folder nesting for the archive drive like c:\backup\aloha
rem---- so I would only set this to a drive letter or like the following a drive letter and 1 folder deep
rem---- this may not be a problem if you create the folders before you run the bat file
SET ARCHDIR=D:\BACKUP
rem---- you can also use a usb drive "hint" disk management can make a USB drive appear in an
rem---- empty NTFS folder so you alway know it's drive designation (see change drive letters and paths)
rem --------------- cleanup dated folder --------------------
rem *** Delete unneeded CDX files in dated subdirs ***
DEL %IBERDIR%\%1\*.CDX
rem ---------- copy edc.ini to the dated folder (I name it edcini.txt)-----------------
copy /Y %IBERDIR%\EDC\EDC.INI %IBERDIR%\%1\EDCINI.TXT
rem --------------- zip only the dated folder this will also include the folder in the archive---------
rem *** Archive dated sub to archive drive ***
rem--- the following may seem a little odd but it is the only way I have been able to get a
rem--- zip file with the folder inside too (as well as the files in it)
rem--- this makes things MUCH easier if you ever need to restore a LOT of zipped dated folders
rem--- this assumes iberdir is located on D:
D:
cd\
cd %iberdir%
7z.EXE a -tzip -r %ARCHDIR%\%1.ZIP %1\*.*
rem --- this is the end of the lines you need to add to winhook.bat
I had a client with over 6 years of data archived this way in a free 2GB idrive account
EOD ran at 1am and I had idrive do the backup at 3am 5am and 5pm "just to be sure"
The daily backup never had to move over 3MB
You can test this on a dated folder ie 20170525 run winhook.bat 20170525 from D:\ALOHA\BIN