Borg Backup to Mounted Samba Share

- Change borg backup from casaos to fileserver mounted samba share
- Update file names and rofi menu names
This commit is contained in:
Sravan Balaji
2023-11-12 13:40:06 -05:00
parent e86caa8d8e
commit 2fbff20364
5 changed files with 17 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ configs:
# MANDATORY: name of the snapper config # MANDATORY: name of the snapper config
- name: root - name: root
# MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame
repo: root@casaos:/media/casaos/12TB_HDD/Backups/oryp7/root repo: /mnt/fileserver/Backups/oryp7/root
# if this is set to true, borg does not neccessarily fail when a backup fails # if this is set to true, borg does not neccessarily fail when a backup fails
fault_tolerant_mode: true fault_tolerant_mode: true
# snapborg fails when the most recent snapshot transferred successfully is # snapborg fails when the most recent snapshot transferred successfully is
@@ -32,7 +32,7 @@ configs:
# MANDATORY: name of the snapper config # MANDATORY: name of the snapper config
- name: home - name: home
# MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame
repo: root@casaos:/media/casaos/12TB_HDD/Backups/oryp7/home repo: /mnt/fileserver/Backups/oryp7/home
# if this is set to true, borg does not neccessarily fail when a backup fails # if this is set to true, borg does not neccessarily fail when a backup fails
fault_tolerant_mode: true fault_tolerant_mode: true
# snapborg fails when the most recent snapshot transferred successfully is # snapborg fails when the most recent snapshot transferred successfully is

View File

@@ -6,7 +6,7 @@ help_menu() {
rofi_menu() { rofi_menu() {
declare -a options=( declare -a options=(
"󰋊 - backup-to-hdd" "󰋊 - backup-to-hdd"
"󰒍 - backup-to-casaos" "󰒍 - backup-to-fileserver"
"󰌍 Back - back" "󰌍 Back - back"
"󰗼 Quit - quit" "󰗼 Quit - quit"
) )
@@ -33,8 +33,8 @@ main() {
--backup-to-hdd) --backup-to-hdd)
kitty --hold /home/sravan/.scripts/backup_to_hdd.sh kitty --hold /home/sravan/.scripts/backup_to_hdd.sh
;; ;;
--backup-to-casaos) --backup-to-fileserver)
kitty --hold /home/sravan/.scripts/backup_to_casaos.sh kitty --hold /home/sravan/.scripts/backup_to_fileserver.sh
;; ;;
--rofi) --rofi)
rofi_menu rofi_menu

View File

@@ -1,2 +0,0 @@
#!/bin/bash
sudo snapborg --cfg /home/sravan/.config/snapborg/casaos_config.yaml backup

View File

@@ -0,0 +1,2 @@
#!/bin/bash
sudo snapborg --cfg /home/sravan/.config/snapborg/fileserver_config.yaml backup

View File

@@ -80,7 +80,7 @@
- [[#backups][Backups]] - [[#backups][Backups]]
- [[#rsync-options][Rsync Options]] - [[#rsync-options][Rsync Options]]
- [[#hdd][HDD]] - [[#hdd][HDD]]
- [[#casaos][CasaOS]] - [[#fileserver][Fileserver]]
- [[#rofi-menu][Rofi Menu]] - [[#rofi-menu][Rofi Menu]]
- [[#syncthing][Syncthing]] - [[#syncthing][Syncthing]]
- [[#user-programs][User Programs]] - [[#user-programs][User Programs]]
@@ -7602,22 +7602,22 @@ configs:
exclude_patterns: [] exclude_patterns: []
#+END_SRC #+END_SRC
*** CasaOS *** Fileserver
**** Script **** Script
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/backup_to_casaos.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/backup_to_fileserver.sh
sudo snapborg --cfg /home/sravan/.config/snapborg/casaos_config.yaml backup sudo snapborg --cfg /home/sravan/.config/snapborg/fileserver_config.yaml backup
#+END_SRC #+END_SRC
**** Configuration **** Configuration
#+BEGIN_SRC yaml :tangle .config/snapborg/casaos_config.yaml #+BEGIN_SRC yaml :tangle .config/snapborg/fileserver_config.yaml
configs: configs:
# MANDATORY: name of the snapper config # MANDATORY: name of the snapper config
- name: root - name: root
# MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame
repo: root@casaos:/media/casaos/12TB_HDD/Backups/oryp7/root repo: /mnt/fileserver/Backups/oryp7/root
# if this is set to true, borg does not neccessarily fail when a backup fails # if this is set to true, borg does not neccessarily fail when a backup fails
fault_tolerant_mode: true fault_tolerant_mode: true
# snapborg fails when the most recent snapshot transferred successfully is # snapborg fails when the most recent snapshot transferred successfully is
@@ -7647,7 +7647,7 @@ configs:
# MANDATORY: name of the snapper config # MANDATORY: name of the snapper config
- name: home - name: home
# MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame
repo: root@casaos:/media/casaos/12TB_HDD/Backups/oryp7/home repo: /mnt/fileserver/Backups/oryp7/home
# if this is set to true, borg does not neccessarily fail when a backup fails # if this is set to true, borg does not neccessarily fail when a backup fails
fault_tolerant_mode: true fault_tolerant_mode: true
# snapborg fails when the most recent snapshot transferred successfully is # snapborg fails when the most recent snapshot transferred successfully is
@@ -7685,7 +7685,7 @@ help_menu() {
rofi_menu() { rofi_menu() {
declare -a options=( declare -a options=(
"󰋊 - backup-to-hdd" "󰋊 - backup-to-hdd"
"󰒍 - backup-to-casaos" "󰒍 - backup-to-fileserver"
"󰌍 Back - back" "󰌍 Back - back"
"󰗼 Quit - quit" "󰗼 Quit - quit"
) )
@@ -7712,8 +7712,8 @@ main() {
--backup-to-hdd) --backup-to-hdd)
kitty --hold /home/sravan/.scripts/backup_to_hdd.sh kitty --hold /home/sravan/.scripts/backup_to_hdd.sh
;; ;;
--backup-to-casaos) --backup-to-fileserver)
kitty --hold /home/sravan/.scripts/backup_to_casaos.sh kitty --hold /home/sravan/.scripts/backup_to_fileserver.sh
;; ;;
--rofi) --rofi)
rofi_menu rofi_menu