News and backup: Difference between revisions

Line 11: Line 11:
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:  
* back up c:\ccmdb_'''data'''\ccmdb.mdb to the SD card
* back up c:\ccmdb_'''data'''\ccmdb.mdb to the SD card
* back up c:\ccmdb_'''data'''\ccmdb.mdb to [[Regional Server]]\data\<hosp>_<ward>
* back up to server w 20 versions
** delete [[Regional Server]]\Programs\<hosp>_<ward>\ccmdb.20
** rename ccmdb.19 to ccmdb.20, ccmdb18 to ccmdb.19, ... ccmdb.1 to ccmdb.2, ccmdb.mdb to ccmdb.1
** copy c:\ccmdb_'''data'''\ccmdb.mdb to [[Regional Server]]\data\<hosp>_<ward>
* check if there is a file [[Regional Server]]\Programs\<hosp>_<ward>\ccmdb.mdb; if so,  
* check if there is a file [[Regional Server]]\Programs\<hosp>_<ward>\ccmdb.mdb; if so,  
** '''move''' the file from the regional server to c:\ccmdb_'''program'''
** '''move''' the file from the regional server to c:\ccmdb_'''program'''