Skip to content

Commit

Permalink
Version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed May 2, 2011
1 parent 365f318 commit 467c35e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
Binary file added 0.1/7za_9.20.exe
Binary file not shown.
12 changes: 12 additions & 0 deletions 0.1/___hMailServer_backup.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo Starting hMailServer
net start hMailServer

set CURRENT_DATE=%DATE%
set PRETTY_DATE=%CURRENT_DATE:~-4%-%CURRENT_DATE:~3,2%-%CURRENT_DATE:~0,2%
set zip=%~dp07za_9.20.exe
set SOURCES="b:\Program Files (x86)\hMailServer"
::set SOURCES=%SOURCES% "www\*"

c:
cd \
"%zip%" a -r -mx1 -ms=off -mmt=on -xr!*\Logs\* "c:\Backup\hmailserver-%PRETTY_DATE%.7z" %SOURCES%
15 changes: 15 additions & 0 deletions 0.1/backup_hMailServer.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
::Change Working Directory to the script path.
::On Vista, the path is system32 when you start the script as an administrator
cd /D "%~dp0"

::Only needed with integrated MSSQL / MYSQL Database
@echo Stopping hMailServer
net stop hMailServer

diskshadow -s diskshadow.script

::In case something goes wrong in the script
@echo Starting hMailServer
net start hMailServer

pause
13 changes: 13 additions & 0 deletions 0.1/diskshadow.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#DiskShadow script file

set context persistent nowriters
set verbose on
begin backup
add volume c: alias SystemVolumeShadow
create
expose %SystemVolumeShadow% b:
exec ___hMailServer_backup.cmd
unexpose b:
end backup

#End of script

0 comments on commit 467c35e

Please sign in to comment.