News and backup: Difference between revisions
Ttenbergen (talk | contribs) m →Process |
Ttenbergen (talk | contribs) mNo edit summary |
||
| Line 26: | Line 26: | ||
The "'''News and Backup'''" batch file is a batch file on each '''laptop''' which does the following: | The "'''News and Backup'''" batch file is a batch file on each '''laptop''' which does the following: | ||
* [[batstart.bat]] | * [[batstart.bat]] | ||
** sets the [[Laptop | ** sets the [[Laptop identifier]] | ||
** checks if there is a newer version of [[backup.bat]]; if so, it downloads it | ** checks if there is a newer version of [[backup.bat]]; if so, it downloads it | ||
** calls [[backup.bat]] | ** calls [[backup.bat]] | ||
| Line 35: | Line 35: | ||
** '''move''' the file from the regional server to c:\ccmdb_'''program''' | ** '''move''' the file from the regional server to c:\ccmdb_'''program''' | ||
** open the wiki to [[Log]] to show what has changed | ** open the wiki to [[Log]] to show what has changed | ||
** copy log file CCMDB_backup_log.txt to the corresponding [[Regional Server]]\data\< | ** copy log file CCMDB_backup_log.txt to the corresponding [[Regional Server]]\data\<[[Laptop identifier]]>; this log would show you when people have run news and backup and if there were errors. | ||
== Setting up the file on a laptop == | == Setting up the file on a laptop == | ||
If the laptop is set up according to [[Laptop Setup]] then the batch files and shortcuts will be copied down as part of the process. | If the laptop is set up according to [[Laptop Setup]] then the batch files and shortcuts will be copied down as part of the process. | ||
* | *The only thing to do locally would be to [[#Edit parameters for identifier]]. | ||
=== Edit parameters for | === Edit parameters for identifier === | ||
# right-click the news-and-backup shortcut and click "edit" | # right-click the news-and-backup shortcut and click "edit" | ||
#* '''Don't double-click''' because that would run the file | #* '''Don't double-click''' because that would run the file | ||
#* [[File:News and backup context menu.png | 150px]] | #* [[File:News and backup context menu.png | 150px]] | ||
# go to the line that starts with "set ml=", should be around line 12 | # go to the line that starts with "set ml=", should be around line 12 | ||
# change the "somewhere" to the [[Laptop | # change the "somewhere" to the [[Laptop identifier]], i.e. your directory on the regional server, e.g. HSC_H4 | ||
#* don't add spaces | #* don't add spaces | ||
#* make sure it's the directory used for the [[Laptop | #* make sure it's the directory used for the [[Laptop identifier]], for legacy reasons this might not be the main ward now collected on | ||
# menu file save, menu file close | # menu file save, menu file close | ||
#* [[File:News and backup edit menu.png | 400px]] | #* [[File:News and backup edit menu.png | 400px]] | ||
| Line 68: | Line 68: | ||
== Updating the file == | == Updating the file == | ||
BatStart.bat looks for an update to backup.bat in regional server\programs\< | BatStart.bat looks for an update to backup.bat in regional server\programs\<[[Laptop identifier]]>; that file will replace the local one. | ||
Make sure [[Batstart.bat#Log]]/[[Backup.bat#Log]] is updated with any changes. | Make sure [[Batstart.bat#Log]]/[[Backup.bat#Log]] is updated with any changes. | ||
| Line 77: | Line 77: | ||
Main office uses [[Backup_Checker.vbs]] to make sure the backups are working. | Main office uses [[Backup_Checker.vbs]] to make sure the backups are working. | ||
== Related articles == | |||
{{Related Articles}} | |||