summaryrefslogtreecommitdiff
path: root/restore.sh
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2024-11-16 15:33:31 -0800
committerkaa <kaa@disroot.org>2024-11-16 15:33:31 -0800
commit0806d76f4530669569f2be8030795fd69eced035 (patch)
tree310dddc703a821f72a59e8e995ac6391d83fcfcb /restore.sh
Janky beginning.
Diffstat (limited to 'restore.sh')
-rwxr-xr-xrestore.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/restore.sh b/restore.sh
new file mode 100755
index 0000000..316b3ec
--- /dev/null
+++ b/restore.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+go run restore.go < dump | sed -e 's|$|;|' -e 's|:/[^/]*/|:/|' | grep -v '\.'
+#go run restore.go < dump | grep bank | sed -e "s|$| --target /bank|" -e "s|/bank||" -e 's|$|;|' | grep -v '\.'