This commit is contained in:
julien 2025-01-19 16:19:34 +01:00
parent f3b80c920f
commit af4caf7d18

View File

@ -36,7 +36,8 @@ tar --zstd -cf /tmp/$BACKUP -C volumes .
# Put it into the storage box (pubkey needed) # Put it into the storage box (pubkey needed)
STORAGE_BOX=u442569@u442569.your-storagebox.de STORAGE_BOX=u442569@u442569.your-storagebox.de
TODAY=$(date +%F) TODAY=$(date +%F)
rsync -r /tmp/$BACKUP $STORAGE_BOX:/$TODAY/$BACKUP ssh -p23 $STORAGE_BOX "mkdir -p $TODAY"
scp -P 23 /tmp/$BACKUP $STORAGE_BOX:/$TODAY
# Clean # Clean
if [ -f "volumes/$DUMP_NAME" ]; then if [ -f "volumes/$DUMP_NAME" ]; then