summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2024-01-07 21:00:16 +0100
committerThomas Waldmann <tw@waldmann-edv.de>2024-01-10 22:33:44 +0100
commitcb62981ae7826630f67a4d65344e2c6c729888f1 (patch)
treef8552e8c3d88c9659c80137095e0a58b3fbcd0a9 /scripts
parent73a416830ab357545b01101ae9e1247c52bd653f (diff)
add script for fetching borg binaries from VMs, fixes #7989
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fetch-binaries21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/fetch-binaries b/scripts/fetch-binaries
new file mode 100755
index 000000000..a43448d14
--- /dev/null
+++ b/scripts/fetch-binaries
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+mkdir -p dist/
+
+check_and_copy () {
+ echo "--- EXE $2 -----------------------------------------------"
+ vagrant ssh $1 -c "/vagrant/borg/borg.exe -V"
+ vagrant scp $1:/vagrant/borg/borg.exe dist/$2
+ echo "--- DIR $2 -----------------------------------------------"
+ vagrant ssh $1 -c "/vagrant/borg/borg-dir/borg.exe -V"
+ vagrant scp $1:/vagrant/borg/borg.tgz dist/$2.tgz
+ echo ""
+}
+
+check_and_copy buster64 borg-linux-glibc228
+check_and_copy bullseye64 borg-linux-glibc231
+check_and_copy bookworm64 borg-linux-glibc236
+
+check_and_copy freebsd64 borg-freebsd
+
+check_and_copy darwin64 borg-macos