APD Backup procedure — Fill in the checkboxes in the binder as you go.

  1. Make sure no one is using the scanner for EPI (because this brings the instascan to a halt!)
  2. Log into porkpie
    1. Check to see if the disk is full by typing "df —k /apd/*"
    2. Type "df —k /pp/k" to see if there is enough space
      1. If not, remove old directories (eg. "rm —r apd3.A001588.Jul21.99")
    3. Run the script "MakeAPDcd 4 y". For instructions, type "MakeAPDcd"
      1. (If you are backing up apd4). Write down the CD number. This takes about 45 minutes.
  3. After the above process finishes, we want to make sure all the files copied successfully:. On porkpie, type:
    1. du —ks * /pp/k/wls/cd/*
    2. df —k /apd/4 à these two numbers should be pretty close
    3. ls /apd/4/anmr_scans/image | wc -> this does a word count of the items in the folder
    4. ls /pp/k/wls/cd/apd4.A001588/anmr_scans/image | wc -> should be the same.
  4. On Ladyday
    1. Make sure there is enough space on the Joule 8880.
      1. If not, delete old directories in Joule 8880::download::cd
    2. Fetch
      1. Connect to porkpie, go to directory /pp/k/wls/cd, "get" apd4.A001588
      2. Destination = Joule 8880::download::cd (Make sure to use binary!)
  5. Verify fetch
    1. Count the files in the image directory after fetch is done … make sure same number.
      1. highlight the anmr_scans/image folder and go to "get info" -- it will tell you the number of files
    2. Bytewise, Mac and UNIX will compare on the order of a few megabytes.
  6. Burn a Mac files/folders CD with Toast
    1. Turn of file sharing, Name CD apd4.A001588.Jul22.99, Write disk
  7. Verify the CD
    1. Make sure the right number of files in image directory, and # of bytes are correct
    2. Fetch one file onto /pp/k/wls/cd
      1. "diff" this file with the original to verify that bytewise one file compares exactlffd
        1. eg. "diff AP-Blah+1894+1+1+1_001.img apd4.A001234/anmr_scans/image/AP-Blah+1894+1+1+1_001.img"
  8. Write apd4.A001449.Jul22.99 on the CD.
  9. Make a tape: Log into the signa via genesis account (again make sure no one is using EPI on the scanner)
    1. New tape (if last tape has 3 files on it, note tape numbering starts at 0)
      1. setenv TAPE /dev/nrst0
      2. mt status à should read file 0
      3. cd /pp/k/wls/backup
      4. ls -> to see list of recent files
      5. backupscript /pp/k/wls/backup/ apd4 tape42.apd4.Jul22.99

        Be sure to put a slash at the end of /pp/k/wls/backup/

        You can write up to 3 tape files using the following syntax

        backupscript /pp/k/wls/backup/ apd4 tape42.0.apd4.Jul22.99 apd5

        tape42.1.apd5.Jul22.99 apd6 tape42.2.apd6.Jul22.99

      6. after it is done, type "mt offline"
    2. Tape with data on it (if tape has 1 or 2 files on it)
      1. setenv TAPE /dev/nrst0
      2. mt status à should read file 0
      3. Check the number of file blocks on the tape, both by reading the tape cover, and looking in /pp/k/wls/backup for the last tape number.
      4. mt fsf 1 à type "1" if there is already one file on the tape, "2" for two, etc.
      5. mt status à should read "1" if there is one file already on the tape
      6. backupscript /pp/k/wls/backup/ apd4 tape42.apd4.Jul22.99

        Be sure to put a slash at the end of /pp/k/wls/backup/

      7. after it is done, type "mt offline"
  10. Verify tape has the right # of image files
    1. more /pp/k/wls/backup/tape42.apd4.Jul22.99 | wc
  11. Clear data on instascan.
    1. cd /apd4/anmr_scans
    2. rm image/* pool/* shim/* raw/*
    3. cp /apd_data2/anmr_scans/anmr_scans_empty anmr_scans
Back to HowTo pages
This page is maintained by MarkCohen [updated 02.28.01]