From 307ae34907531e88a4f25aaf2e91f5b588b02d61 Mon Sep 17 00:00:00 2001 From: Marc Hoppe Date: Wed, 1 Mar 2023 17:03:12 +0100 Subject: [PATCH] ... --- backupdata.sh | 7 +++++-- backupme.sh | 3 ++- backupsrc.sh | 7 +++++-- start_grafana | 3 +-- start_podsync | 8 +++++--- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/backupdata.sh b/backupdata.sh index cbf8570..1e364fa 100644 --- a/backupdata.sh +++ b/backupdata.sh @@ -1,8 +1,11 @@ #!/bin/sh +REPOSITORY=pi@pi4.fritz.box:/media/hdext/borg #REPOSITORY=pi@kodi.fritz.box:/media/hdext/borg -REPOSITORY=marc@vdr.fritz.box:/media/hdext/borg +#REPOSITORY=pi@vdrpi.fritz.box:tmp/mnt/borg PREFIX=nasdat +if [ "$1" != "--prune" ]; then + borg create -v --stats --progress --compression zlib --one-file-system \ $REPOSITORY::'nasdat-{now:%Y-%m-%d}' \ /dat/books \ @@ -18,7 +21,7 @@ borg create -v --stats --progress --compression zlib --one-file-system \ --exclude '/dat/docu/Download' \ --exclude '*/files_trashbin' \ - +fi # Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly # archives of THIS machine. The '{hostname}-' prefix is very important to diff --git a/backupme.sh b/backupme.sh index 6810aaa..e428595 100644 --- a/backupme.sh +++ b/backupme.sh @@ -1,6 +1,7 @@ #!/bin/sh +REPOSITORY=pi@pi4.fritz.box:/media/hdext/borg #REPOSITORY=pi@kodi.fritz.box:/media/hdext/borg -REPOSITORY=marc@vdr.fritz.box:/media/hdext/borg +#REPOSITORY=pi@vdrpi.fritz.box:tmp/mnt/borg if [ "$1" != "--prune" ]; then borg create -v --stats --progress --compression zlib --one-file-system \ diff --git a/backupsrc.sh b/backupsrc.sh index 3019060..4e5bcb3 100644 --- a/backupsrc.sh +++ b/backupsrc.sh @@ -1,8 +1,11 @@ #!/bin/sh +REPOSITORY=pi@pi4.fritz.box:/media/hdext/borg #REPOSITORY=pi@kodi.fritz.box:/media/hdext/borg -REPOSITORY=marc@vdr.fritz.box:/media/hdext/borg +#REPOSITORY=pi@vdrpi.fritz.box:tmp/mnt/borg PREFIX=nassrc +if [ "$1" != "--prune" ]; then + borg create -v --stats --progress --compression zlib --one-file-system \ $REPOSITORY::'nassrc-{now:%Y-%m-%d}' \ /dat/src \ @@ -30,7 +33,7 @@ borg create -v --stats --progress --compression zlib --one-file-system \ --exclude '*/staging*/*' \ --exclude '/run' - +fi # Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly diff --git a/start_grafana b/start_grafana index 6e3263d..b2ee77a 100644 --- a/start_grafana +++ b/start_grafana @@ -1,3 +1,2 @@ - -sudo docker run -p 3001:3000 -v /var/lib/grafana:/var/lib/grafana -e "GF_SECURITY_ADMIN_PASSWORD=1234" grafana/grafana +sudo docker run -p 3001:3000 -v /var/lib/grafana:/var/lib/grafana -e "GF_SECURITY_ADMIN_PASSWORD=1234" -d --restart always grafana/grafana diff --git a/start_podsync b/start_podsync index 461235a..06bbb83 100755 --- a/start_podsync +++ b/start_podsync @@ -1,7 +1,9 @@ -#!bin/sh +#!/bin/sh + +# https://github.com/mxpv/podsync sudo docker run \ -p 8080:8080 \ - -v $(pwd)/data:/app/data/ \ - -v $(pwd)/config.toml:/app/config.toml \ + -v /srv/podsync/data:/app/data/ \ + -v /srv/podsync/config.toml:/app/config.toml \ mxpv/podsync:latest