Setup a backup infrastructure
This commit is contained in:
parent
c15d9f5ebf
commit
4f268ea778
3 changed files with 10 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
DEB_PKGS="\
|
||||
audacity \
|
||||
borgbackup \
|
||||
direnv \
|
||||
docker.io \
|
||||
emacs-mozc \
|
||||
|
|
|
|||
7
.config/setup/11-initialize-backup-repository.sh
Executable file
7
.config/setup/11-initialize-backup-repository.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#! /usr/bin/sh
|
||||
|
||||
sudo mkdir -p "${BORG_REPO}"
|
||||
sudo chown "${USER}":"${USER}" "${BORG_REPO}"
|
||||
sudo chmod 700 "${BORG_REPO}"
|
||||
|
||||
borg init --encryption=repokey
|
||||
2
.profile
2
.profile
|
|
@ -30,3 +30,5 @@ umask 0007
|
|||
export GTK_IM_MODULE="fcitx"
|
||||
export QT_IM_MODULE="fcitx"
|
||||
export XMODIFIERS="@im=fcitx"
|
||||
export BORG_REPO="/media/backup/"
|
||||
export BORG_PASSCOMMAND="cat ${HOME}/.keys/borg-passphrase.txt"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue