++ restic direct option
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -4s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -4s
This commit is contained in:
parent
efcbf765bf
commit
59889c29c4
1 changed files with 7 additions and 2 deletions
|
@ -21,7 +21,11 @@ repo=s3:${endpoint}/${bucket_name}/restic
|
||||||
|
|
||||||
export RESTIC_PASSWORD="$(pass git co nico-privat >/dev/null 2>&1; pass notebook/restic-password)"
|
export RESTIC_PASSWORD="$(pass git co nico-privat >/dev/null 2>&1; pass notebook/restic-password)"
|
||||||
|
|
||||||
restic -r ${repo} backup \
|
# Allow sing restic directly
|
||||||
|
if [ $# -ge 1 ]; then
|
||||||
|
restic -r ${repo} "$@"
|
||||||
|
else
|
||||||
|
restic -r ${repo} backup \
|
||||||
--exclude ~/Nextcloud \
|
--exclude ~/Nextcloud \
|
||||||
--exclude ~/Downloads \
|
--exclude ~/Downloads \
|
||||||
--exclude ~/movies/ \
|
--exclude ~/movies/ \
|
||||||
|
@ -31,4 +35,5 @@ restic -r ${repo} backup \
|
||||||
--exclude ~/.config/**/logs \
|
--exclude ~/.config/**/logs \
|
||||||
~/
|
~/
|
||||||
|
|
||||||
restic -r ${repo} forget --keep-last 20 --prune
|
restic -r ${repo} forget --keep-last 20 --prune
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue