diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2021-05-30 18:46:13 +0200 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2021-05-30 20:03:20 +0200 |
commit | 23aeaadab0061130e0b0f5207e62ec20cbfe9dbb (patch) | |
tree | 992585afee36d2636cb3723e846e1f6281ab80b1 | |
parent | afda402f4a745f5da826737bca731a45fd09c78c (diff) | |
download | dotfiles-23aeaadab0061130e0b0f5207e62ec20cbfe9dbb.tar.gz dotfiles-23aeaadab0061130e0b0f5207e62ec20cbfe9dbb.tar.bz2 dotfiles-23aeaadab0061130e0b0f5207e62ec20cbfe9dbb.zip |
mount correctly external disk and do backup
-rwxr-xr-x | bin/backup.sh | 5 | ||||
-rw-r--r-- | config/awesome/rc.lua | 2 | ||||
-rw-r--r-- | config/doom/config.org | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/bin/backup.sh b/bin/backup.sh index 356fa77..d70ed19 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -36,6 +36,7 @@ backup_local() { --keep-monthly 6 $REPOSITORY } -backup_local borgbackup ssh://backup/media/Backup/daily_backup/ ~/dev/ ~/.mail/ ~/Nextcloud/ ~/org/ ~/src_car/ /media/backup/personal/Pictures/ /media/backup/personal/Libros/ /media/backup/personal/dev/ /media/backup/Archives/ +DISK=/run/media/titan/ext_backup +backup_local borgbackup ssh://backup/media/Backup/daily_backup/ ~/dev/ ~/.mail/ ~/Nextcloud/ ~/org/ "$DISK/personal/Pictures/" "$DISK/personal/Libros/" "$DISK/personal/dev/" "$DISK/Archives/" backup_local Admin/sarah/borg/ingrid ssh://borgbackup@173.212.211.30/./repos/ingrid ~/dev/ ~/org/ ~/.mail/ ~/Nextcloud/ -backup_local Admin/sarah/borg/oscar ssh://borgbackup@173.212.211.30/./repos/oscar /media/backup/personal/Pictures/ /media/backup/personal/Libros/ /media/backup/personal/dev/ /media/backup/Archives/ +backup_local Admin/sarah/borg/oscar ssh://borgbackup@173.212.211.30/./repos/oscar "$DISK/personal/Pictures/" "$DISK/personal/Libros/" "$DISK/personal/dev/" "$DISK/Archives/" diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index bd4130b..c53e3aa 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -630,7 +630,7 @@ end run_once("nextcloud") run_once("light-locker") run_once("redshift-gtk") -run_once("mount /media/backup") +run_once("udisksctl mount -b /dev/disk/by-label/ext_backup") run_once("nm-applet") run_once("aw-qt") diff --git a/config/doom/config.org b/config/doom/config.org index 4d1d156..ed1e22a 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -293,7 +293,7 @@ Emacs mode for managing ledger text files :commands calibredb :config (set-evil-initial-state! 'calibredb-search-mode 'emacs) - (setq calibredb-root-dir "/media/backup/personal/Libros/CalibreManaged") + (setq calibredb-root-dir "/run/media/titan/ext_backup/personal/Libros/CalibreManaged") (setq calibredb-db-dir (expand-file-name "metadata.db" calibredb-root-dir))) #+end_src * Programming languages |