Add .zshrc.aliases
Add backup.sh
This commit is contained in:
parent
fc3f317cc6
commit
1925479e76
2 changed files with 21 additions and 0 deletions
1
dot_zshrc.aliases
Normal file
1
dot_zshrc.aliases
Normal file
|
@ -0,0 +1 @@
|
||||||
|
alias v=""~/.local/bin/lvim""
|
20
executable_backup.sh
Normal file
20
executable_backup.sh
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# default number of backups that are kept, per path per host.
|
||||||
|
# will be overwritten by -k
|
||||||
|
export KEEPLAST=7
|
||||||
|
|
||||||
|
# location of backup repository, hostname may be defined
|
||||||
|
# in .ssh/config
|
||||||
|
# at this location an initialized repository must exist
|
||||||
|
# (this can be done with `restic init`)
|
||||||
|
export RESTIC_REPOSITORY="sftp:user@anthe:/mnt/external/private/personal"
|
||||||
|
export RESTIC_EXCLUDE="/home/user/Pictures"
|
||||||
|
|
||||||
|
# Password that is supplied to `restic init`
|
||||||
|
export RESTIC_PASSWORD=$(sudo cat /etc/backup/personal.pass)
|
||||||
|
|
||||||
|
exec restic "$@" --exclude=${RESTIC_EXCLUDE} --exclude="/home/user/.cache" --exclude="/home/user/.config/VSCodium/Cache/" --exclude="/home/user/.config/VSCodium/CachedData/" --exclude="/home/user/.config/VSCodium/CachedExtensions/" --exclude="/home/user/.config/VSCodium/CachedExtensionVSIXs/"
|
||||||
|
|
||||||
|
unset RESTIC_REPOSITORY
|
||||||
|
unset RESTIC_PASSWORD
|
Loading…
Add table
Add a link
Reference in a new issue