Deprecated see https://github.com/tonic-team/synchronisation_scripts

julien colomb 11883d6607 add exisitng submodule addition há 3 anos atrás
create_research_repositories 4f5cf811a3 updates há 3 anos atrás
old b46810cbe1 Move old script to subdirectory há 3 anos atrás
organisation_SCRIPTS 4f5cf811a3 updates há 3 anos atrás
README.md e6e29896a3 runs, create repos and team, há 3 anos atrás
setgin.sh 4f5cf811a3 updates há 3 anos atrás
sync e43cecae83 Error checking and logging há 4 anos atrás
sync.bat 8b2dff2b79 Error checking in sync.bat há 3 anos atrás
tonic-PLAN.Rmd 11883d6607 add exisitng submodule addition há 3 anos atrás
tonic-PLAN.html e61f65943e add md output há 3 anos atrás
tonic-PLAN.md 11883d6607 add exisitng submodule addition há 3 anos atrás

README.md

Scripts for working with GIN

Scripts for working with GIN server using the GIN client.

bash script to create repo

sh create_researchrepo organisation projectname projectteam projectteam is optional

example: sh create_researchrepo gin4rri testproject testproject

Bash script for Linux and macOS

sync: Run from inside a repository to upload any local changes to GIN using the GIN CLI.

  • Assumes the repository is already initialised.
  • Does not work with submodules.
  • Synchronises changes made remotely (on the server) and locally (on the local machine).
  • Does not download large file content by default.
    • Uncomment lines 40 and 41 to perform a full download at the end of the run. The line should be gin get-content . and the following line should be checkerror ....
  • Double clicking on the file in a file browser should run the script in a terminal. If the script succeeds, the terminal closes immediately. If there is an error, it will print an error message and wait for the user to press [Enter] or close the window.

Batch script for Windows

sync.bat: Run from inside a repository to upload any local changes to GIN using the GIN CLI.

Note: This script has not been fully tested yet

  • Assumes the repository is already initialised.
  • Does not work with submodules.
  • Synchronises changes made remotely (on the server) and locally (on the local machine).
  • Does not download large file content by default.
    • Uncomment lines 26 and 27 to perform a full download at the end of the run. The line should be gin get-content . and the following line should be CALL :checkerror ....
  • Double clicking on the file in a file browser should run the script in a terminal. If the script succeeds, the terminal closes immediately. If there is an error, it will print an error message and wait for the user to press [Enter] or close the window.

Old scripts

The old directory contains old upload scripts that were written while testing different use cases. They shouldn't be used in their current state, but they may be useful for the future.