added disclaimer

This commit is contained in:
snaki 2023-07-12 10:49:22 +02:00
parent ede50c4517
commit fba1045c84
Signed by: emily
GPG key ID: F6F4C66207FCF995
2 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# btrbk - btrfs backup and restore script
This is a bash script I made to create simple, incremental, PGP encrypted backups of your btrfs subvolumes.
**This is horrible don't use this**
This is a bash script I made to create simple, incremental, PGP encrypted backups of your btrfs subvolumes.
Rclone is used to support a wide variety of Storage Backends. Encryption is done by the Standard gpg commandline tool.
## Features

4
btrbk
View file

@ -146,6 +146,9 @@ function getSnap {
if ! [ -d "$snapLast" ]; then
snapLast=$SNAPDIR$(ls -a $SNAPDIR | grep ${VOLNAME[$i]}.$(date -d "$date" +%Y-%m)- | tail -n 1)
fi
if [ $snapLast = $SNAPDIR ]; then
unset snapLast
fi
done
}
@ -222,6 +225,7 @@ function echoHelp {
options=$(getopt -l "backup,force,date::,restore::,full-restore::,help" -o "bfh" -- "$@")
eval set -- "$options"
options=($options)
for i in ${!options[@]}; do
case $1 in
-b|--backup) backup=true; shift;;