Skip to content

Commit

Permalink
Merge pull request #37 from sara-nl/add-versioning
Browse files Browse the repository at this point in the history
Add versioning
  • Loading branch information
onnozweers authored Nov 29, 2024
2 parents 7f7bea0 + da5991a commit fd1eb9d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# SpiderScripts
Welcome! These are a few scripts that we use at SURFsara to work with Spider.
Welcome! These are a few scripts that we use at SURF to work with Spider.

## Ada
Ada stands for "Advanced dCache API". It is a client that talks to the dCache storage system API to get all kinds of information like directory listings and file checksums, and to do things like renaming, moving, deleting, staging (restoring from tape), and subscribing to server-sent-events so that you can automate actions when new files are written or files are staged. Ada does not transfer files; we suggest you use Rclone (https://rclone.org/) for that.
## ADA
ADA stands for "Advanced dCache API". It is a client that talks to the dCache storage system API to get all kinds of information like directory listings and file checksums, and to do things like renaming, moving, deleting, staging (restoring from tape), and subscribing to server-sent-events so that you can automate actions when new files are written or files are staged. ADA does not transfer files; we suggest you use [Rclone](https://rclone.org/) for that.

ADA is pre-installed on Spider. If you want to use ADA elsewhere, you can clone this repository.

For an overview of the commands and options, run:
```
ada --help
```

Read further how to use ADA in the [Spider Documentation](https://doc.spider.surfsara.nl/en/latest/Pages/storage/ada-interface.html).
8 changes: 7 additions & 1 deletion ada/ada
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ usage() {
If no authentication method is specified, \$BEARER_TOKEN is used if it exists.
Commands:
--help
Show this helptext.
--version
Show version number.
--whoami
Show how dCache identifies you.
Expand Down Expand Up @@ -280,6 +282,10 @@ while [ $# -gt 0 ] ; do
--help | -help | -h )
usage
;;
--version )
git describe --tags --abbrev=0
exit 1
;;
--tokenfile )
auth_method=token
tokenfile="$2"
Expand Down

0 comments on commit fd1eb9d

Please sign in to comment.