Initial commit

This commit is contained in:
Johannes Randerath 2024-06-13 21:00:56 +02:00
commit 7b9a7e00f2
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
kopia_environment

12
kopia_backup.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
cd `dirname ${BASH_SOURCE[0]}`
source ./kopia_environment
kopia repository connect s3 --bucket=$BUCKET_NAME --access-key=$ACCESS_KEY --secret-access-key=$SECRET_ACCESS_KEY --endpoint=$ENDPOINT
for dir in $DIRS; do
kopia snapshot create $dir;
done
unset BUCKET_NAME ACCESS_KEY SECRET_ACCESS_KEY ENDPOINT DIRS