commit 7b9a7e00f25adc1a641dafce59c73c0242be26b6 Author: Johannes Randerath Date: Thu Jun 13 21:00:56 2024 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..71a8a7d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +kopia_environment diff --git a/kopia_backup.sh b/kopia_backup.sh new file mode 100644 index 0000000..baf57ee --- /dev/null +++ b/kopia_backup.sh @@ -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 +