# data¶

Private BIDS datasets.

git+ssh://data.neuro.polymtl.ca has a max size of ~1TB and is currently not backed up.

It hosts BIDS datasets, version-controlled using git-annex. It is locked behind a VPN because much of our data is under medical ethics protections, and needs to be kept off the general internet.

## Initial setup¶

### Prerequisites¶

1. You must have a *nix OS with git-annex>=8 installed. See git-annex installation.

2. Make sure you have an ssh key.

• If not, run ssh-keygen -t ed25519 -C your.name@polymtl.ca. Your keys will be in the hidden folder ~/.ssh/.

### Inscription¶

Send your ssh public key – that is, the contents of ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub (the .pub file) – to one of the server admins and ask them to create your account.

A pubkey should look like

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE+b5vj+WvS5l6j56NF/leMpC2xT7JUCMUWDAqvWoVmNZ7UR3dGXQeTPTlmPmxPGD2Hk9/zFzxO2kYOt9o4lHQ0QQSKLUmTyuieyJE26wL1ZiLilmTgvgMxxkxvInF/Vr78V5Ll72zAmXzUxVSvuDGY2GRjnLreYheiqg1F3xTuD68uWInX8ZwA7NDtKpoZ7Aat063vD79WBrtiCfvAMbM8QhC3294zxqAjjy9fxs+TMTqAxtKdaWCA/eCs7sx9uvtFcj2Q9jxCMB3br5HyPLotgJMoIMt+fywj+vQG907LODRcqm9J0+ih+38/3Y6aqECMkHA9WWIfFywwjeA7EGr your.name@polymtl.ca


or

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwsjlem+acuTOZGyNQKjyI7kJe9ULkhZo7N04QfC/tA your.name@polymtl.ca


• jcohen@polymtl.ca

• alexandru.foias@polymtl.ca

• nick.guenther@polymtl.ca

• taowa.rosetwig@polymtl.ca

### Connection¶

Because this server contains private medical data, you need to be on campus, connected to the VPN, or working from a server on campus, like joplin or rosenberg to access it.

If connecting from off-campus, connect to polyvpn.

🏚️ Verify connectivity by ping data.neuro.polymtl.ca. If you cannot ping then you need to double-check your VPN connection; make sure it is connected, make sure you can reach joplin, and if it still isn’t working ask the Poly network admins to unblock your account from this server.

Verify you can use the server by ssh git@data.neuro.polymtl.ca help. If it hangs, triple-check again your VPN. If it rejects you, your account is not created yet, or you have switched machines. A successful connection looks like:



### Deletion¶

You can also delete any repo using D.

You can also get rid of a dataset immediately by:

ssh git@data.neuro.polymtl.ca D unlock datasets/<dataset>
ssh git@data.neuro.polymtl.ca D rm datasets/<dataset>


### Backups¶

Backups are automatically made to MIC-UNF’s servers.

except they’re not, yet: https://github.com/neuropoly/data-management/issues/20

You can access these if you need to recover by:

TODO


### Troubleshooting¶

If the server is doing something strange, contact someone with sysadmin-access to the server (what luck: as of 2021-03 at least, the admins and the sysadmins are the same set: Julien, Alex, Nick and Taowa).

These people can investigate by following the gitolote guide in the sysadmin docs.

### References¶

• Patel, Hiren - Wildrepos in Gitolite – detailing how a research lab manages their code and publications collaboratively through gitolite