#!/bin/sh

password="Jumbocarrot&001"

cd /home/jadowyne/dockers/gitea

docker compose down

cd ..

timestamp=$(date -d "today" +"%Y%m%d%H%M")

sudo -S -p "$password" zip -r $timestamp-gitea.zip gitea

sudo -S -p "$password" cp -r $timestamp-gitea.zip /media/backups/gitea

sudo rm $timestamp-gitea.zip

cd /home/jadowyne/dockers/gitea

docker compose up -d

