Update backup script
parent
c43927140c
commit
90b9744d1c
|
@ -9,8 +9,15 @@
|
||||||
#
|
#
|
||||||
# Runs `backup` command on $HOME and ignore what is listed in `.resticexclude`
|
# Runs `backup` command on $HOME and ignore what is listed in `.resticexclude`
|
||||||
|
|
||||||
restic \
|
# restic \
|
||||||
-o rclone.args="serve restic --stdio --b2-hard-delete --ignore-size --ignore-checksum --update" \
|
# -o rclone.args="serve restic --stdio --b2-hard-delete --ignore-size --ignore-checksum --update" \
|
||||||
-r rclone:onedrive-vub:restic \
|
# -r rclone:onedrive-vub:restic \
|
||||||
-v backup "$HOME" \
|
# -v backup "$HOME" \
|
||||||
--exclude-file="$HOME/.resticexclude"
|
# --exclude-file="$HOME/.resticexclude"
|
||||||
|
|
||||||
|
source /etc/restic-env
|
||||||
|
restic -r b2:"$HOSTNAME" backup \
|
||||||
|
--one-file-system \
|
||||||
|
--files-from="$HOME/.resticinclude" \
|
||||||
|
--exclude-file="$HOME/.resticexclude" \
|
||||||
|
--verbose=3
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Restic ignore
|
# Restic ignore
|
||||||
|
|
||||||
# General
|
# General
|
||||||
|
.trash
|
||||||
|
Trash
|
||||||
.cache
|
.cache
|
||||||
cache
|
cache
|
||||||
Cache
|
Cache
|
||||||
|
@ -23,6 +25,7 @@ $HOME/.cargo
|
||||||
$HOME/.conda
|
$HOME/.conda
|
||||||
$HOME/.config/BraveSoftware/Brave-Browser/Default/Local Storage
|
$HOME/.config/BraveSoftware/Brave-Browser/Default/Local Storage
|
||||||
$HOME/.config/BraveSoftware/Brave-Browser/Default/Local Extension Settings
|
$HOME/.config/BraveSoftware/Brave-Browser/Default/Local Extension Settings
|
||||||
|
$HOME/.config/nvm/versions
|
||||||
$HOME/.config/devcert
|
$HOME/.config/devcert
|
||||||
$HOME/.espressif
|
$HOME/.espressif
|
||||||
$HOME/.local/share/torbrowser
|
$HOME/.local/share/torbrowser
|
||||||
|
@ -31,4 +34,6 @@ $HOME/.nvm
|
||||||
$HOME/.npm
|
$HOME/.npm
|
||||||
$HOME/.nuget
|
$HOME/.nuget
|
||||||
$HOME/.yarn
|
$HOME/.yarn
|
||||||
|
$HOME/.config/yarn
|
||||||
$HOME/doc/disk-images
|
$HOME/doc/disk-images
|
||||||
|
$HOME/.stremio-server
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
/etc
|
||||||
|
/boot
|
||||||
|
/home
|
Loading…
Reference in New Issue