diff --git a/.config/snapborg/casaos_config.yaml b/.config/snapborg/fileserver_config.yaml similarity index 94% rename from .config/snapborg/casaos_config.yaml rename to .config/snapborg/fileserver_config.yaml index 4af7915..68aa402 100644 --- a/.config/snapborg/casaos_config.yaml +++ b/.config/snapborg/fileserver_config.yaml @@ -2,7 +2,7 @@ configs: # MANDATORY: name of the snapper config - name: root # 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 fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -32,7 +32,7 @@ configs: # MANDATORY: name of the snapper config - name: home # 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 fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is diff --git a/.scripts/backup.sh b/.scripts/backup.sh index 43d20aa..d9fefa0 100755 --- a/.scripts/backup.sh +++ b/.scripts/backup.sh @@ -6,7 +6,7 @@ help_menu() { rofi_menu() { declare -a options=( "󰋊 - backup-to-hdd" - "󰒍 - backup-to-casaos" + "󰒍 - backup-to-fileserver" "󰌍 Back - back" "󰗼 Quit - quit" ) @@ -33,8 +33,8 @@ main() { --backup-to-hdd) kitty --hold /home/sravan/.scripts/backup_to_hdd.sh ;; - --backup-to-casaos) - kitty --hold /home/sravan/.scripts/backup_to_casaos.sh + --backup-to-fileserver) + kitty --hold /home/sravan/.scripts/backup_to_fileserver.sh ;; --rofi) rofi_menu diff --git a/.scripts/backup_to_casaos.sh b/.scripts/backup_to_casaos.sh deleted file mode 100755 index c58d4d5..0000000 --- a/.scripts/backup_to_casaos.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -sudo snapborg --cfg /home/sravan/.config/snapborg/casaos_config.yaml backup diff --git a/.scripts/backup_to_fileserver.sh b/.scripts/backup_to_fileserver.sh new file mode 100755 index 0000000..7131342 --- /dev/null +++ b/.scripts/backup_to_fileserver.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sudo snapborg --cfg /home/sravan/.config/snapborg/fileserver_config.yaml backup diff --git a/README.org b/README.org index 54b65e0..25904ae 100644 --- a/README.org +++ b/README.org @@ -80,7 +80,7 @@ - [[#backups][Backups]] - [[#rsync-options][Rsync Options]] - [[#hdd][HDD]] - - [[#casaos][CasaOS]] + - [[#fileserver][Fileserver]] - [[#rofi-menu][Rofi Menu]] - [[#syncthing][Syncthing]] - [[#user-programs][User Programs]] @@ -7602,22 +7602,22 @@ configs: exclude_patterns: [] #+END_SRC -*** CasaOS +*** Fileserver **** Script -#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/backup_to_casaos.sh -sudo snapborg --cfg /home/sravan/.config/snapborg/casaos_config.yaml backup +#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/backup_to_fileserver.sh +sudo snapborg --cfg /home/sravan/.config/snapborg/fileserver_config.yaml backup #+END_SRC **** Configuration -#+BEGIN_SRC yaml :tangle .config/snapborg/casaos_config.yaml +#+BEGIN_SRC yaml :tangle .config/snapborg/fileserver_config.yaml configs: # MANDATORY: name of the snapper config - name: root # 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 fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -7647,7 +7647,7 @@ configs: # MANDATORY: name of the snapper config - name: home # 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 fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -7685,7 +7685,7 @@ help_menu() { rofi_menu() { declare -a options=( "󰋊 - backup-to-hdd" - "󰒍 - backup-to-casaos" + "󰒍 - backup-to-fileserver" "󰌍 Back - back" "󰗼 Quit - quit" ) @@ -7712,8 +7712,8 @@ main() { --backup-to-hdd) kitty --hold /home/sravan/.scripts/backup_to_hdd.sh ;; - --backup-to-casaos) - kitty --hold /home/sravan/.scripts/backup_to_casaos.sh + --backup-to-fileserver) + kitty --hold /home/sravan/.scripts/backup_to_fileserver.sh ;; --rofi) rofi_menu