Agustina data transfer
The Agustina supercomputer is a high-performance computing (HPC) system used for scientific and technical computing tasks. Efficient data transfer to and from Agustina is essential for preparing jobs, analyzing results, and managing large datasets.
This document provides step-by-step instructions for securely transferring files between your local machine and the Agustina supercomputer using several methods, including SFTP, Filezilla, SSHFS, SCP, and Rclone. Each method is described with practical examples to help you choose the best approach for your workflow.
Prerequisites
Before you can transfer data, you will need the following:
- Username and Password: You will need a valid username and password to access the Agustina supercomputer.
- Secure Shell (SSH) Client: You will need an SSH client, such as PuTTY (Windows) or Terminal (macOS/Linux), to connect to the supercomputer.
- Filezilla: You will need Filezilla to copy files on graphical UI.
Transfer Methods
SFTP (Secure File Transfer Protocol)
SFTP is a secure way to transfer files to and from the Agustina supercomputer. Here's how to use it:
- Open your SSH client and connect to the Agustina supercomputer using your username and password.
- Once connected, you can use the SFTP client to transfer files. For example, in PuTTY, you can type
sftp username@agustina.bifi.unizar.es
and press Enter. - Navigate to the desired directories on both your local machine and the Agustina supercomputer using the
cd
command. - Use the
put
command to upload files from your local machine to the Agustina supercomputer, and theget
command to download files from the Agustina supercomputer to your local machine.
To upload a file from your local machine to Agustina:
sftp username@agustina.bifi.unizar.es
# After entering your password and connecting:
cd /path/to/remote/directory
put /path/to/local/file
To download a file from Agustina to your local machine:
sftp username@agustina.bifi.unizar.es
# After entering your password and connecting:
cd /path/to/remote/directory
get remote_file.txt /path/to/local/directory/
Filezilla (Graphical SFTP Client)
Filezilla is a free, cross-platform graphical SFTP client that makes it easy to transfer files between your local machine and the Agustina supercomputer.
-
Download and Install Filezilla
Download Filezilla from https://Filezilla-project.org/ and install it on your computer. -
Open Filezilla and Set Up a New Connection
- Open Filezilla.
- At the top, enter the following details:
- Host:
sftp://agustina.bifi.unizar.es
- Username: your Agustina username
- Password: your Agustina password
- Port:
22
- Host:
- Click "Quickconnect".
-
Transfer Files
- The left pane shows your local files; the right pane shows files on Agustina.
- Drag and drop files between panes to upload or download.
-
Security Note
- The first time you connect, you may be prompted to trust the server's host key. Accept to proceed.
Filezilla provides a user-friendly way to manage file transfers without using the command line.
SSHFS (Secure Shell Filesystem)
SSHFS allows you to mount the Agustina supercomputer's file system on your local machine, making it easier to manage files. Here's how to use it:
- Install the SSHFS client on your local machine. On Windows, you can use WinFsp; on macOS/Linux, you can use the built-in SSHFS client.
- Open your SSH client and connect to the Agustina supercomputer using your username and password.
- Once connected, use the
sshfs
command to mount the Agustina supercomputer's file system on your local machine. For example, on macOS/Linux, you can typesshfs username@agustina.bifi.unizar.es:/path/to/remote/directory /path/to/local/mount/point
. - You can now manage files on the Agustina supercomputer as if they were on your local machine.
Example: Using SSHFS to Mount Agustina's Filesystem
On macOS or Linux, you can mount a remote directory from Agustina to a local mount point using SSHFS.
First, ensure SSHFS is installed. On macOS, you can use Homebrew:
brew install sshfs fuse3
On Linux, install via your package manager:
sudo apt-get install sshfs fuse3
Then, mount the remote directory:
sshfs -o allow_other,default_permissions username@agustina.bifi.unizar.es:/path/to/remote/directory /path/to/local/mount/point
- Replace
username
with your Agustina username. - Replace
/path/to/remote/directory
with the directory you want to access on Agustina. - Replace
/path/to/local/mount/point
with an existing directory on your local machine.
Remember to set the full path to the private ssh file. If you get an error like this:
fusermount3: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
Uncoment the option user_allow_other in your /etc/fuse.conf
.
To unmount when finished:
fusermount -u /path/to/local/mount/point
SCP (Secure Copy)
SCP is a command-line tool for securely copying files between your local machine and the Agustina supercomputer. Here's how to use it:
- Open your SSH client and connect to the Agustina supercomputer using your username and password.
- To upload a file from your local machine to the Agustina supercomputer, use the
scp
command. For example,scp /path/to/local/file username@agustina.bifi.unizar.es:/path/to/remote/directory
. - To download a file from the Agustina supercomputer to your local machine, use the
scp
command in the opposite direction. For example,scp username@agustina.bifi.unizar.es:/path/to/remote/file /path/to/local/directory
.
To upload a file from your local machine to Agustina:
scp /path/to/local/file username@agustina.bifi.unizar.es:/path/to/remote/directory
To download a file from Agustina to your local machine:
scp username@agustina.bifi.unizar.es:/path/to/remote/file /path/to/local/directory
Rclone
Rclone is a command-line tool that can be used to transfer files between your local machine and cloud storage services, including the Agustina supercomputer. Here's how to use it:
- Install Rclone on your local machine with
sudo apt-get install rclone
. - Configure Rclone to connect to the Agustina supercomputer by running
rclone config
and following the prompts. - Use the
rclone copy
command to upload files from your local machine to the Agustina supercomputer, and therclone sync
command to download files from the Agustina supercomputer to your local machine. For example,rclone copy /path/to/local/file agustina:/path/to/remote/directory
.
Example: Using Rclone with Password Obscuration
- Obscure your plain text password
rclone obscure <your-plain-text-password>
The ouput string will set on the rclone.conf
file on step 2.
- Create or Edit your
rclone.conf
file
Create a file called rclone.conf
(usually located at ~/.config/rclone/rclone.conf
) with the following content.
Replace username
with your Agustina username and use rclone config password
to generate the obscured password string.
[agustina]
type = sftp
host = agustina.bifi.unizar.es
user = username
pass = <obscured-password>
port = 22
- Copy files from Agustina to your local machine
To copy a remote file or directory from Agustina to your local machine, use:
rclone --config=/full/path/to/rclone.conf copy agustina:/path/to/remote/file /path/to/local/directory
To copy an entire directory:
rclone --config=/full/path/to/rclone.conf copy agustina:/path/to/remote/directory /path/to/local/directory --progress
Agustina also has a rclone module installed to copy files ans folder from remote to local, to load the module the commmand is:
module load rclone/1.69.3
For more commands to use in rclone visit: https://rclone.org/commands/.
Remember to replace the placeholders (e.g., username
, agustina.bifi.unizar.es
, /path/to/remote/directory
) with the appropriate values.