Skip to content

Instantly share code, notes, and snippets.

@landge
Last active May 23, 2023 07:27
Show Gist options
  • Save landge/963b7d50437c0682f5d477e66a0e18a8 to your computer and use it in GitHub Desktop.
Save landge/963b7d50437c0682f5d477e66a0e18a8 to your computer and use it in GitHub Desktop.
Datalad Setup

Datalad setup

Main directory

Main datalad directory is located on ms1.local

/home/till/NorCOAST_Datalad/NorCOAST_Imaging_Dataset

Configured remotes on ms1

Command to show all remotes (called siblings in datalad)

datalad siblings -> local, nrec-dcm-box, ms3 (apparently not correctly synced)

% datalad create-sibling-gin myrepo -s gin

# the sibling on GitHub will be used for collaborative work
% datalad create-sibling-github myrepo -s github

# register the storage of the public GIN repo as a data source
% datalad siblings configure -s gin --as-common-datasrc gin-storage

# announce its availability on github
% datalad push --to github (this is the given name of the remote git repository)
S

I just have to use GitHub with Git/LFS+ to backup my data...

Remote datalad server

The remote datalad server is located in BGO called landge. Hostname is dcm-box. Great!

New Datalad repository with a GitHub remote

Source folder on crai-box:

/home/landge/The_New_Datalad_Directory_May_2023

The corresponding GitHub repository is called:

https://github.com/landge/NorCOAST_Imaging_Dataset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment