# Syncing with $ARCHIVE

## $CENTER1 <-> $ARCHIVE

The volatile, high performance scratch filesystem, $CENTER1, is not intended for permanent storage. Users are responsible for backing up any critical data either to their own storage, or to $ARCHIVE. The two methods recommended to backup files are either `sftp`, `scp`, or `rsync` via `ssh`. Here are examples of using these commands.

{% hint style="info" %}
To simplify these processes, set up SSH keys for easier authentication onto bigdipper.alaska.edu first.
{% endhint %}

### sftp a file

```
Login to a chinook login node.
$ cd $CENTER1/local-subdir
$ sftp bigdipper.alaska.edu
> cd /archive/PROJECT/username/remote-subdir
> put file1
> quit
```

### scp a sub-directory

```
Login to a chinook login node.
$ scp -rp $CENTER1/local-subdir \
bigdipper.alaska.edu:/archive/PROJECT/$USER/remote-subdir
```

### rsync via ssh

```
Login to a chinook login node.
$ rsync -av --rsh=ssh $CENTER1/local-subdir/ \
bigdipper.alsaka.edu:/archive/PROJECT/$USER/remote-subdir/
```

{% hint style="info" %}
Note the trailing "/" in the path names. They are important. For more information, see the [rsync man page](https://linux.die.net/man/1/rsync).
{% endhint %}

All of these transfers can be automated and executed as a batch job in the chinook transfer queue, or as a cron job on a chinook login node.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://uaf-rcs.gitbook.io/uaf-rcs-storage-docs/syncing-with-usdarchive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
