Posts Tagged ‘backup’


You might want to read the previous articles before proceeding:
Part 1Need a Quicker way to backup DacEasy Data?
Part 2Choosing what DacEasy files to backup

are not familiar with running batch files in windows, please consider an alternative.

Create a new folder on your C:\ drive called dacBackup

Copy the following code into a new file called “dacBackup.cmd” and save it in the same folder:

:: First, I create a temporary directory to copy the data to.
md c:\dacBackup\DacEasy
:: Copy each of the individual modules from
:: their working directories to the temporary directory.
(xcopy C:\DacEasy\bc\profiles\DacEasyCompany1 C:\dacBackup\DacEasy\bc\profiles\DacEasyCompany1 /I /E /V /Y
xcopy C:\DacEasy\ac\DacEasyCompany1 C:\dacBackup\DacEasy\ac\DacEasyCompany1 /I /E /V /Y
xcopy C:\DacEasy\py\DacEasyCompany1 C:\dacBackup\DacEasy\py\DacEasyCompany1 /I /E /V /Y
xcopy C:\DacEasy\bc\profiles\DacEasyCompany2 C:\dacBackup\DacEasy\bc\profiles\DacEasyCompany2 /I /E /V /Y
xcopy C:\DacEasy\ac\DacEasyCompany2 C:\dacBackup\DacEasy\ac\DacEasyCompany2 /I /E /V /Y
xcopy C:\DacEasy\py\DacEasyCompany2 C:\dacBackup\DacEasy\py\DacEasyCompany2 /I /E /V /Y
) > C:\dacBackup\dacCopy.log
:: By enclosing the XCOPY commands in parenthesis, I
:: can create a single log file of every command within
:: the group. This logfile is created and saved as
:: “C:\dacBackup\dacCopy.log”
@echo off
:: Set Variables
set Today=%Date:~4,2%-%Date:~7,2%-%Date:~10,4%
set fileName=DacBackup
set dDay=%Date:~0,3%
set BackupFolder=C:\dacBackup
set BackupFile=%BackupFolder%\%fileName%(%dDay%)Full.bkf
set JobName=%Today% DacEasy Backup
set Description=DacEasy Backup %Today%
:: Back up Files and Shares
C:\windows\system32\ntbackup.exe backup “C:\dacBackup\DacEasy” /n “DacEasy Backup %Today%” /d “%Description%” /v:yes /r:no /rs:no /hc:off /m normal /j “%JobName%” /f “%BackupFile%”
:: Removes temporary directory
rd /S /Q c:\dacBackup\DacEasy

If you have trouble trying to copy and paste the code above, I have also provided the script for download in 2 different compressed file formats (ZIP and RAR):

 

This solution should work if people are logged in to DacEasy as long as they aren’t modifying any Employee Information, or running any Transactions.

The default installation directory for DacEasy is:
C:\DacEasy\

Each module that you use in DacEasy should be located in it’s own folder by default.

Default Module Locations:
Company Profile – C:\DacEasy\bc\profiles\
Accounting – C:\DacEasy\ac\
Payroll – C:\DacEasy\py\
Job Costing – C:\DacEasy\jc\
Order Entry – C:\DacEasy\oe\
Point of Sale – C:\DacEasy\ps\

If you need help finding where you installed the modules for your Company Data, check out “How To Find DacEasy Module Folder Paths

If you are using the default folders, you should be able to find individual company modules within each of the default folders by adding the name of the company profile to the end of each module path.