|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: Title Here |
| 4 | +tagline: |
| 5 | +--- |
| 6 | + |
| 7 | +TACC's HPC systems have large `$WORK` and `$SCRATCH` directories to facilitate running |
| 8 | +scientific applications against big data sets. However, the size of these filesystems |
| 9 | +make it unrealistic for TACC to back up all user data. We recommend that each user |
| 10 | +back up their own personal or project data located on `$WORK` or `$SCRATCH` file |
| 11 | +systems. The resource we provide to facilitate this is an archival system called |
| 12 | +'Ranch'. This guide will cover: |
| 13 | + |
| 14 | +1. [System access](#system-access) |
| 15 | +2. [Transferring data to Ranch](#transferring-data-to-ranch) |
| 16 | +3. [Retrieving data from Ranch](#retrieving-data-from-ranch) |
| 17 | + |
| 18 | + |
| 19 | +<br> |
| 20 | +#### System access |
| 21 | + |
| 22 | +Ranch is available from a terminal by direct login with `ssh`. Your TACC username, |
| 23 | +password, and multifactor token will be required to login: |
| 24 | + |
| 25 | +``` |
| 26 | +% ssh username@ranch.tacc.utexas.edu |
| 27 | +``` |
| 28 | + |
| 29 | + |
| 30 | +<br> |
| 31 | +#### Transferring data to Ranch |
| 32 | + |
| 33 | +The most effective way to archive your personal data to Ranch is using the `scp` |
| 34 | +command from a Linux terminal. For example: |
| 35 | +``` |
| 36 | +% scp mydata ${ARCHIVER}:${ARCHIVE}/myfilepath |
| 37 | +``` |
| 38 | + |
| 39 | +The environment variables `${ARCHIVER}` and `${ARCHIVE}` are defined on each of |
| 40 | +TACC's production machines to automatically point to the correct Ranch host and |
| 41 | +home directory, respectively. |
| 42 | + |
| 43 | +Please also note that tape file systems work most efficiently with fewer large |
| 44 | +files, rather than many small files. Please make an effort to `tar` your folders |
| 45 | +of many thousands of small files into one large file for archiving. File sizes of |
| 46 | +around 250GB are ideal. This can be done automatically in the transfer: |
| 47 | +``` |
| 48 | +% tar cvf - dirname | ssh ${ARCHIVER} "cat > ${ARCHIVE}/mytarfile.tar" |
| 49 | +``` |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +<br> |
| 54 | +#### Retrieving data from Ranch |
| 55 | + |
| 56 | +If you need to retrieve data from backups, log directly into Ranch (as above) |
| 57 | +and transfer your data back to one of the TACC HPC systems before unpacking. For |
| 58 | +example: |
| 59 | +``` |
| 60 | +% ssh username@ranch.tacc.utexas.edu |
| 61 | +
|
| 62 | +[ranch]% scp mytarfile.tar username@stampede2.tacc.utexas.edu:/scratch/01234/username/ |
| 63 | +[ranch]% ssh username@stampede2.tacc.utexas.edu |
| 64 | +
|
| 65 | +[stampede2]% cd /scratch/01234/username |
| 66 | +[stampede2]% tar -xvf mytarfile.tar |
| 67 | +``` |
| 68 | +<br><br> |
| 69 | +For more information, please see the [Ranch User Guide](https://portal.tacc.utexas.edu/user-guides/ranch). |
| 70 | + |
| 71 | + |
| 72 | +--- |
| 73 | +Return to the [API Documentation Overview](../index.md) |
0 commit comments