add restic backup script
This commit is contained in:
1 parent
1ced1d2ae5
commit
4fde2575f4
2 files changed
+36
No files matched your search
@@ -0,0 +1,20 @@
|
|||||||
|
#Just Caches
|
||||||
|
**/cache/
|
||||||
|
**/Cache/
|
||||||
|
|
||||||
|
#Logs
|
||||||
|
**/log/
|
||||||
|
**/logs/
|
||||||
|
**/Log/
|
||||||
|
**/Logs/
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# VSCode
|
||||||
|
/home/rob/.config/Code/Cache
|
||||||
|
/home/rob/.config/Code/CachedData
|
||||||
|
/home/rob/.config/Code/CachedExtensions
|
||||||
|
/home/rob/.config/Code/CachedExtensionVSIXs
|
||||||
|
|
||||||
|
# Firefox und Co.
|
||||||
|
/home/rob/.mozilla
|
||||||
|
/home/rob/Downloads
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Hint: to exclude any directory (for example an cache dir)
|
||||||
|
# place the CACHEDIR.TAG file in there: https://bford.info/cachedir/
|
||||||
|
# don't forget the signature in there and set the parameter: --exclude-caches
|
||||||
|
|
||||||
|
export RESTIC_REPOSITORY=bfds:/mnt/bfds/rob-restic-backups/restic-repo-t520-user
|
||||||
|
export RESTIC_PASSWORD=kopenhagenhatsuperinternetwirklich
|
||||||
|
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
|
|
||||||
|
# backup the whole user dir to bfds
|
||||||
|
restic -r sftp:${RESTIC_REPOSITORY} backup /home/rob --exclude-caches --exclude-file=${SCRIPT_DIR}/backup.excludes
|
||||||
|
|
||||||
|
|
||||||
|
#restic -r sftp:bfds:/mnt/bfds/rob-restic-backups/restic-repo-t520-user backup /home/rob --exclude-caches
|
||||||
Reference in new issue
Block a user