From b664813b522951507e821803aa0c666d38938aab Mon Sep 17 00:00:00 2001 From: julien Date: Sun, 19 Jan 2025 15:15:46 +0100 Subject: [PATCH] scp in place of ssh --- sbin/vol-compress | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/vol-compress b/sbin/vol-compress index 35542d0..a713179 100644 --- a/sbin/vol-compress +++ b/sbin/vol-compress @@ -35,6 +35,8 @@ if [ -d "volumes/postgres" ]; then nerdctl exec -e $CONTAINER_NAME pg_dump -U $DB_USER $DB_NAME > volumes/$DUMP_NAME fi -# Compress all volumes excerpt mysql and postgres into the staorage box (pubkey needed) +# Compress all volumes excerpt mysql and postgres into the storage box (pubkey needed) BACKUP=${PWD##*/}.tar.zst -ssh u442569@u442569.your-storagebox.de tar --zstd --exclude='volumes/mysql' --exclude='volumes/postgres' -cf - volumes > $BACKUP +tar --zstd -cf $BACKUP -C volumes /tmp +scp /tmp/$BACKUP u442569@u442569.your-storagebox.de +rm /tmp/$BACKUP