Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Commit a3f931e

Browse files
authored
archiving to ranch section (#40)
* adding ranch info * finishing up ranch user guide
1 parent db9c654 commit a3f931e

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

docs/05.archiving_ranch.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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)

index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ the SD2E platform. Documentation for getting started with the SD2E API is below.
8181

8282
&nbsp;&nbsp;&nbsp;&nbsp;5.4 Jupyter Notebooks (*coming soon*)
8383

84+
&nbsp;&nbsp;&nbsp;&nbsp;[5.5 Archiving to Ranch](docs/05.archiving_ranch.md)
8485

8586

8687
&nbsp;&nbsp;**6 Quick Reference**

0 commit comments

Comments
 (0)