summaryrefslogtreecommitdiff
path: root/dumps/fetch-dropbox.sh
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2023-10-07 21:23:45 +0200
committeremkael <emkael@tlen.pl>2023-10-07 21:24:46 +0200
commita6ca0fa635e3a3816f9f11d529f22f4896b3bae7 (patch)
tree793a86b5984f4dfe113624b236e6827e587b7ed7 /dumps/fetch-dropbox.sh
parent56a6344d74670bbc30c476bde91a11d36c6b1b43 (diff)
Importing dumps uploaded via Dropbox and FTP
Diffstat (limited to 'dumps/fetch-dropbox.sh')
-rwxr-xr-xdumps/fetch-dropbox.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/dumps/fetch-dropbox.sh b/dumps/fetch-dropbox.sh
new file mode 100755
index 0000000..99db29e
--- /dev/null
+++ b/dumps/fetch-dropbox.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+dbxcli ls -l "${LIGA_DROPBOX_DUMP_FOLDER}" | awk -F"ago" '{print $2}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' |
+ xargs -I{} dbxcli get {} dumps/sync