Default Jobsheet Viewer

Backing up to VLab

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.
  1. Open a terminal window and type cd /localapps/dev .
  2. Type mkdir svn_work .
  3. Type cd svn_work.
  4. Type svn checkout https://vlab.noaa.gov/svn/xxx/trunk/a2/localization xxx_SiteRepo where xxx is your site id.
  5. Type Enter at the password prompt. Note that it is using your local login and not your NOAA email ID for the username.
  6. At the new username prompt, type your NOAA email ID in all lower case (i.e., first.last).
  7. Type your NOAA email password.
  8. Type cd xxx_SiteRepo where xxx is your site id.
  9. Type mkdir cave_config cave_static common_static edex_static.
  10. Type cd cave_config and then type mkdir site.
  11. Type cd .. .
  12. Repeat steps 10 and 11 for the cave_static, common_static, and edex_static directories.
  13. 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.
  14. Type cd .. twice.
  15. 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.
  16. 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.
  17. Type cd .. .
  18. 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.
  19. Type svn add cave_config cave_static common_static edex_static .
  20. 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.
  21. The next part of this jobsheet relates to versioning to keep track of all the old versions of your files.
  22. 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.
  23. 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.
  24. Type cd latest_stable and type mkdir a2.
  25. Type cd a2 and type cp -r /localapps/dev/svn_work/xxx_siteRepo/localization . where xxx is your site id.
  26. 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.
  27. 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.
  28. Type svn add latest_stable 1.0 (or the date in the format of YYYYMMDD instead of 1.0)
  29. 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.
  30. Task Complete! For more information on your Site's Subversion Repository go here.