Backing up to VLab - OCLO
Default Jobsheet Viewer
Purpose:
This jobsheet demonstrates how to back up files to VLab with the use of Subversion(versioning).Tasks:
Assumptions:
- You have never accessed your wfo's Subversion(svn) repository.
- Your svn repository does not have the cave_config, cave_static, common_static, or edex_static directories.
- Open a terminal window and type cd /localapps/dev .
- Type mkdir svn_work .
- Type cd svn_work.
- Type svn checkout https://vlab.noaa.gov/svn/xxx/trunk/a2/localization xxx_SiteRepo where xxx is your site id.
- Type Enter at the password prompt. Note that it is using your local login and not your NOAA email ID for the username.
- At the new username prompt, type your NOAA email ID in all lower case (i.e., first.last).
- Type your NOAA email password.
- Type cd xxx_SiteRepo where xxx is your site id.
- Type mkdir cave_config cave_static common_static edex_static.
- Type cd cave_config and then type mkdir site.
- Type cd .. .
- Repeat steps 10 and 11 for the cave_static, common_static, and edex_static directories.
- Type cd cave_config/site and type cp -r /awips2/edex/data/utility/cave_config/site/XXX . to copy all of your cave_config SITE-level localization files where XXX is your site id.
- Type cd .. twice.
- Repeat steps 13 and 14 for the cave_static/site, common_static/site, and edex_static/site directories changing cave_config in the path to cave_static, common_static, and edex_static.
- Type cd cave_config and type cp -r /awips2/edex/data/utility/cave_config/user . to copy all of your cave_config USER-level localization files.
- Type cd .. .
- Repeat steps 16 and 17 for the cave_static and common_static directories changing cave_config in the path to cave_static and common_static.
- Type svn add cave_config cave_static common_static edex_static .
- Type svn commit -m "m1" where m1 represents a message describing the changes to the repository. Note that your files have now been uploaded to VLab.
- The next part of this jobsheet relates to versioning to keep track of all the old versions of your files.
- Type cd /localapps/dev/svn_work/xxx_siteRepo and type svn checkout https://vlab.noaa.gov/svn/xxx/tags where xxx is your site id.
- Type cd tags and type mkdir latest_stable the date in the format of YYYYMMDD or 1.0 for the version. If 1.0 is used for the version then each minor change is 1.0.#, each slightly less minor change (a change that is closer to a major change) is 1.#, and each major change is #.0 where # is increasing by one each time a change is added to VLab.
- Type cd latest_stable and type mkdir a2.
- Type cd a2 and type cp -r /localapps/dev/svn_work/xxx_siteRepo/localization . where xxx is your site id.
- Type cd /localapps/dev/svn_work/xxx_siteRepo/tags/1.0 or the date in the format of YYYYMMDD (e.g., /localapps/dev/svn_work/xxx_siteRepo/20220824) where xxx is your site id.
- Type cp -r /localapps/dev/svn_work/xxx_siteRepo/tags/latest_stable/a2 . where xxx is your site id. Note that each time you backup to VLab you need to make a directory of the version of the files and put the files in the latest_stable directory as well.
- Type svn add latest_stable 1.0 (or the date in the format of YYYYMMDD instead of 1.0)
- Type svn commit -m "m1" where m1 represents a message describing the changes to the repository. Your changes have now been added to your Site's Subversion Repository.
- Task Complete! For more information on your Site's Subversion Repository go here.