-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
365f318
commit 467c35e
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |