Skip to content

Commit 8ed88de

Browse files
committed
feat(misc): adjust data
1 parent c745d1f commit 8ed88de

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

downloads3.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ mkdir -p "$MARIA_DATA" && mkdir -p "$AWS_HOME"
1111
podman run --rm -it \
1212
-v $MARIA_DATA:/etc/maria-data \
1313
-v $AWS_HOME:/root/.aws \
14-
--network=host $DOCKER_IMAGE download
14+
-e AWS_BUCKET="s3://finanssoreal-backups/" \
15+
--network=host "finanssoreal/db-helper:latest" download

dump2db.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
#!/bin/bash
22

3-
DOCKER_IMAGE="finanssoreal/db-helper:latest"
43
MARIA_DATA="$HOME/maria-data"
5-
AWS_HOME="$HOME/.aws"
64

75
# create the base directories
8-
mkdir -p "$MARIA_DATA" && mkdir -p "$AWS_HOME"
6+
mkdir -p "$MARIA_DATA"
97

108
# download a dump from the database
119
podman run --rm -it \
1210
-v $MARIA_DATA:/etc/maria-data \
13-
-v $AWS_HOME:/root/.aws \
14-
--network=host $DOCKER_IMAGE insert
11+
--network=host "finanssoreal/db-helper:latest" insert

0 commit comments

Comments
 (0)