9 | | Handy commands: |
10 | | |
11 | | * `find -type f -not -wholename *bin/az* -and -not -regex '.*/run[aceh]/.*sh' -and -perm /a=x -exec chmod a-x {} \;` |
12 | | * removes executable bit on all files (except bin/az* and the run[aceh] scripts) |
13 | | * `find -regex '.*[^-0-9a-zA-Z/._].*'` |
14 | | * find all files/dirs with unusual characters (space, brackets, etc) - these need a manual rename |
15 | | * `chmod -R a+rX .` |
16 | | * recursively give everyone read permissions (and execute if it has user execute) for the current directory and below |
| 9 | 1. Copy the relevant datasets onto the disk. For each dataset: |
| 10 | 1. Make sure everything is where it should be! (see [wiki:Procedures/DataFlow this wiki page] for the layout) |
| 11 | 1. Add a copy of the relevant trac ticket(s) - save these as html (including images) and put in the admin/ subdir. |
| 12 | 1. Write a README.txt that explains: |
| 13 | 1. The layout of the disk and what's on it |
| 14 | 1. Any additional information that'll help explain unusual files/dirs |
| 15 | 1. Scan the filesystem for any 'bad' things and fix them: |
| 16 | 1. Remove executable bit on all files (except bin/az* and the run[aceh] scripts) -> `find -type f -not -wholename *bin/az* -and -not -regex '.*/run[aceh]/.*sh' -and -perm /a=x -exec chmod a-x {} \;` |
| 17 | 1. Find all files/dirs with unusual characters (space, brackets, etc) - these need a manual rename at present -> `find -regex '.*[^-0-9a-zA-Z/._].*'` |
| 18 | 1. Give everyone read permissions (and execute if it has user execute) for the current directory and below - `chmod -R a+rX .` |
| 19 | 1. Create a filelist (`find -ls > file_list.txt`) |
| 20 | 1. Copy the README and filelist to the USB stick associated with the disk. |
| 21 | 1. Print out and attach listings & README to the logbook. |
| 22 | 1. Package up the disk, USB stick and log book nicely and post to NEODC at the address below: |
| 23 | {{{ |
| 24 | ARSF Data Archiving c/o Victoria Jay |
| 25 | NERC Earth Observation Data Centre |
| 26 | Space Science & Technology Dept. |
| 27 | STFC Rutherford Appleton Laboratory |
| 28 | Chilton, Didcot OX11 0QX |
| 29 | }}} |