19 lines
553 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
date=$(date +"%F-%H")
echo "Backup of Koillection initiated"
echo ""
mkdir ./$date
echo "Creating a temp folder and copying content"
cp -r ./volumes/ ./$date
cp ./docker-compose.yml ./$date
cp ./.env ./$date
echo "Copy done, transfering to Desktop"
scp -r ./$date emanuel@192.168.1.101:/home/emanuel/scp/senaste
#scp ./docker-compose.yml  emanuel@192.168.1.39:/home/emanuel/SCP/Senaste
#scp ./.env emanuel@192.168.1.39:/home/emanuel/SCP/Senaste
echo "Transfer complete"
echo "Removing temp folder"
rm -r ./$date
echo "Temp folder removed"