summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-21 22:54:52 -0400
committerAndrew Cady <d@jerkface.net>2023-05-21 22:54:52 -0400
commit5dcbbaeb2c942356f3b9b7dba5e04ec373adfced (patch)
tree383b434ac354f243c54c7fb02a774ebc9cf69613
parentba97b75f340b9f109a80c17ab77cb5cbee155013 (diff)
Makefile
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..327ab68
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
1config_dir = /etc/btrfs-backup/remotes
2remotes = $(notdir $(wildcard $(config_dir)/*.json))
3
4ifeq ($(remotes),)
5$(error You must put at least one *.json configuration file into <file:///$(config_dir)>).
6endif
7
8go:
9 for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait