Skip to content

Commit

Permalink
Install backups2datalad from new repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Dec 4, 2023
1 parent 1259665 commit e4bce86
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions tools/backups2datalad-108
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source ~/.bashrc-miniconda
conda activate dandisets-2

cd "$ds"
chronic pip install -r tools/backups2datalad.req.txt
chronic pip install git+https://github.com/dandi/backups2datalad

export DATALAD_LOG_LEVEL=WARNING # otherwise too much of noise

Expand All @@ -25,7 +25,7 @@ set -o pipefail
set -x

(
eval python -m tools.backups2datalad \
eval backups2datalad \
-l WARNING \
-J 5 \
--target "$ds" \
Expand All @@ -40,13 +40,13 @@ eval python -m tools.backups2datalad \
echo "we do not care about the rest in this one"
exit 0

python -m tools.backups2datalad \
backups2datalad \
-l DEBUG \
-J 5 \
--target "$ds" \
populate dandi-dandisets-dropbox 000108

python -m tools.backups2datalad \
backups2datalad \
-l DEBUG \
-J 5 \
populate-zarrs --zarr-target "$zarrds" dandi-dandizarrs-dropbox
Expand Down
2 changes: 1 addition & 1 deletion tools/backups2datalad-backup-zarrs-108
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
source "$(dirname "$0")"/backups2datalad-cron-common

python -m tools.backups2datalad \
backups2datalad \
-l WARNING \
--backup-root "$backup_root" \
--config tools/backups2datalad.cfg.yaml \
Expand Down
2 changes: 1 addition & 1 deletion tools/backups2datalad-cron-common
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source ~/.bashrc-miniconda
conda activate dandisets-2

cd "$ds"
chronic pip install -r tools/backups2datalad.req.txt
chronic pip install git+https://github.com/dandi/backups2datalad

: "${DATALAD_LOG_LEVEL:=WARNING}" # otherwise too much noise
export DATALAD_LOG_LEVEL
Expand Down
2 changes: 1 addition & 1 deletion tools/backups2datalad-populate-assets-cron
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
source "$(dirname "$0")"/backups2datalad-cron-common

python -m tools.backups2datalad \
backups2datalad \
-l DEBUG \
--backup-root "$backup_root" \
--config tools/backups2datalad.cfg.yaml \
Expand Down
2 changes: 1 addition & 1 deletion tools/backups2datalad-populate-zarrs-cron
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
source "$(dirname "$0")"/backups2datalad-cron-common

python -m tools.backups2datalad \
backups2datalad \
-l DEBUG \
--backup-root "$backup_root" \
--config tools/backups2datalad.cfg.yaml \
Expand Down
2 changes: 1 addition & 1 deletion tools/backups2datalad-update-cron
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "$(dirname "$0")"/backups2datalad-cron-common

(
python -m tools.backups2datalad \
backups2datalad \
-l WARNING \
--backup-root "$backup_root" \
--config tools/backups2datalad.cfg.yaml \
Expand Down
2 changes: 1 addition & 1 deletion tools/backups2datalad-update-cron-zarrs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Just the update portion
source "$(dirname "$0")"/backups2datalad-cron-common

eval python -m tools.backups2datalad \
eval backups2datalad \
-l WARNING \
--backup-root "$backup_root" \
--config tools/backups2datalad.cfg.yaml \
Expand Down

0 comments on commit e4bce86

Please sign in to comment.