# ssh in PadLabNas (if needed)
ssh USERNAME@ipaddresshere -p 22
# Check _rclone_ is installed
rclone –version
# if not install rclone (on your local machine)
# add a remote
rclone config
Accessing PadLabNas
An introduction to using PadLabNas
PadLabNas is a Network Attached Storage designed to simplify how members of the Buckling Collaborative backup, archive, and share their data. It lives in Dan Padfield’s office.
Log in to PadLabNas from https://padpadpadpad.de6.quickconnect.to/. Request access by contacting Daniel Padfield at d.padfield@exeter.ac.uk or messaging him on Microsoft Teams.
General Rules
- Set schedule settings for syncs to exclude 8-5 Monday to Friday so it does not read/write during work hours when people are in the office.
- Every folder within BucklingCollaborative has to have a README describing the folder.
- If moving files between PadLabNas and another remote server, ssh into PadLabNas. If you try using your local machine as a go-between for two remotes using rclone, it will download the files to your machine and re-upload them.
- When using rclone, make sure to either use screen or tmux to allow the upload and download to continue even if the Terminal window closes.
Folder and file names
- How you name folders within your home folder is up to you, as long as it is consistent.
- In BucklingCollaborative name folders with underscores. I recommend naming folders by the year of the project and underscore with a summary title of the project and the initials of the main researcher on the project. For example: “2025_doseresponseAMR_ZE”
Folder structure
- You can view all files you have access to on the Synology by using the File Station application.
- Each member has their own home space, which can be seen in home, you can see everyone else’s in homes.
- Put your own personal files in your space, but any finished projects and sequencing goes into BucklingCollaborative.
- Within Buckling Collaborative, there are some legacy folders which store previous projects that were backed up in a variety of places.
- buckling stores
- padfield-lab stores
- 1840-cmh-bacteria-radiations stores
Permitted uses of PadLabNas
Back-up OneDrive (or other storage service) using CloudSync
- CloudSync is an application on the virtual Desktop of PadLabNas. If not, you can access it on Package Centre.
- Once there set up your OneDrive account for the Synology,
- I use Bidirectional Sync Direction, meaning files go from the NAS to your OneDrive, and vice versa.
- Set the local path to be one_drive within your profile area (e.g. dpadfield/one_drive). Create the one_drive folder if needed.
Back-up data
- Back up each project into its separate folder in BucklingCollaborative.
- Ensure it has a README.
- Make sure the folder is named consistently (see Section 1.2).
- Depending on where the sequencing is, you may download it in several ways (see below).
Moving files to and from PadLabNas
File Station
Drag and drop using access from https://padpadpadpad.de6.quickconnect.to/. With File Station you can add, move, and rename folders, as well as deleting files.
Download Station
Use the application Download Station to download files from third party providers when they give a download link.
Cloud Sync
Use the application Cloud Sync to sync your OneDrive or other cloud storage system regularly to the NAS.
rclone
Programmatically move files using rclone. rclone is useful to move individual files and folders between servers or to and from your local machine. If moving to or from your local machine, this can be done on the command line, if moving to or from PadLabNas to another server (e.g. Athena, Carson, Isca, RStudio), you will need to ssh into the other server, and install rclone using conda in your base environment.
First you will need to set up rclone. Open your terminal. On your local machine (and any remote server you are also using), you need to create a config file which stores the details of the PadLabNas (and any other remotes) you want to move files between. When moving files between PadLabNas and another remote, you will need to SSH into the remote first and add a config file to the remote server.
This will start an interactive command in your terminal to add a new remote. To set this up:
- When asked for Storage> choose ssh/sftp (48).
- When asked for host> add the address of the remote (e.g. the ip address)
- When asked for user> use the user for that remote (e.g. dpadfield or dp415)
- When asked for port> use 22
- When asked for password> type your password for that server.
- All the other options can be left empty or as the default.
To be able to move files to and from PadLabNas easily, we need to manually edit the config file. First we need to know where the config file is.
# local rclone config file
rclone config file
Will tell you where your config file is stored. Open it. In the [PadLabNas] section add path_override = @/volume1/ on a new line. Save and close the file.
We are now ready to move folders and files programmitically. Some useful usecases are below. rclone docs are useful for writing commands. ChatGPT or Claude AI may also be useful for this. Some example commands are below. Adding –dry-run to your copy commands will give you output of what rclone copy will do without moving any files.
# list available remotes
rclone listremotes
# view directories of a remote_
rclone lsd PadLabNas:
# move to where you want to move the folder too
cd ~/Downloads
# run a test download using copy
# downloads test from PadLabNas into your local machine to a folder. Adding /test at the end of the destination creates the folder on your machine.
rclone copy PadLabNas:BucklingCollaborative/test ~/Downloads/test --progress
# move test onto PadLabNas
rclone copy ~/Downloads/test --progress PadLabNas:BucklingCollaborative/test
An example of moving a folder from PadLabNas to another remote server is below. This example assumes you are logged in to the remote server (e.g. RStudio server). It is important to write absolute paths and not use ~ to denote relative file paths.
# move test folder from PadLabNas to remote server
rclone copy PadLabNas:BucklingCollaborative/test /home2/ISAD/dp415/test --verbose --progress