From a6ca0fa635e3a3816f9f11d529f22f4896b3bae7 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 7 Oct 2023 21:23:45 +0200 Subject: Importing dumps uploaded via Dropbox and FTP --- dumps/fetch-dropbox.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 dumps/fetch-dropbox.sh (limited to 'dumps/fetch-dropbox.sh') 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 -- cgit v1.2.3