View previous topic :: View next topic |
Author |
Message |
Dataprise
Joined: 21 Aug 2008 Posts: 13 Location: Rockville, MD
|
Posted: Thu Aug 21, 2008 5:42 pm Post subject: Best Practices for Backing up HostMonitor Program/Data? |
|
|
Hello,
What is the easiest way to backup the Host Monitor data and its configurations? I am worried if the server crashes we will lose the configuration. I know it is an .xml file, but besides backing those up, should I just have the whole directory (minus the logs) backed up?
Secondly, What does RMA Manager use to keep it's configuration? I want to make sure that is being backed up as well. I am not using backup exec, but rather an FTP connection to my offsite server.
Thanks for any and all assistance. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12794 Location: USA
|
|
Back to top |
|
|
Dubolomov
Joined: 01 Jun 2006 Posts: 214 Location: Russia
|
Posted: Wed Aug 27, 2008 1:12 am Post subject: |
|
|
I have scheduled task that runs script every night at 00:10am:
Code: | "C:\Program Files\HostMonitor5\Scripts\Archive.bat" %yyyymmdd[-8d]% %yyyymmdd[-1d]% %yyyymmdd% %hhnn% |
This bat file get command line parameters and execute this code:
Code: | @echo %1 - Date of files for deleting (yyyymmdd[-8d]).
@echo %2 - Yesterday (yyyymmdd[-1d]).
@echo %3 - Today (yyyymmdd).
@echo %4 - Real Time (hhnn).
@if '%1'=='' goto quit
@if '%2'=='' goto quit
@if '%3'=='' goto quit
@if '%4'=='' goto quit
del /Q "C:\Logs.Old\*%1--log.txt" > "C:\Logs\SysLog\Archive--%3_%4.log"
"C:\Program Files\HostMonitor5\Utils\WinZIP\Wzzip.exe" -a -ep -whs -p -r -ybc "C:\BackUp\HostMonitor_Logs_for_%2_date__(created_at__%3_%4).zip" "C:\Logs.Old\*%2--log.txt" >> "C:\Logs\SysLog\Archive--%3_%4.log"
"C:\Program Files\HostMonitor5\Utils\WinZIP\Wzzip.exe" -a -ep -whs -p -r -ybc "C:\BackUp\HostMonitor_for_%3_date__(created_at__%3_%4).zip" "C:\Program Files\HostMonitor5" >> "C:\Logs\SysLog\Archive--%3_%4.log"
:quit
exit |
First four strings are just comment for command line parameters.
Next four strings checks if all needed command line parameters exists.
Then it deletes log-files older one week.
Then it archives all logs for yesterday using zip (wzzip is a command line archivator) and create file "HostMonitor_Logs_for_[date-of-log-files]_date__(created_at__[time-and-date-of-creation-archive]).zip".
And then it archives all HM folder and create archive file "HostMonitor_for_[date-of-HM-files]_date__(created_at__[time-and-date-of-creation-archive]).zip".
After this i have schedule task on backup server for getting this archive files.
You can edit this script just for HM backuping or something else. |
|
Back to top |
|
|
Dataprise
Joined: 21 Aug 2008 Posts: 13 Location: Rockville, MD
|
Posted: Fri Sep 19, 2008 5:24 am Post subject: |
|
|
great, thanks everyone! |
|
Back to top |
|
|
|