|
1 | 1 | # Arch Installation Script
|
2 | 2 |
|
3 |
| -Installation script for my **Arch Linux** setup. Installs automaticly dependencies of my setup on a new installation. Also copies backed up data to new operating system. |
| 3 | +Post-installation script for **Arch Linux/EndeavourOS**. Installs automaticly packages that are declared within the `packages/**` files and transfers data from a borgbackup server to the current operating system. |
4 | 4 |
|
5 | 5 | # Getting Started
|
6 | 6 |
|
7 |
| -For a complete installation & syncing, you can make use of `./src.main.sh`. Before that I recommend to change the locations declard in `./src/.rsync.sh` (look below). |
| 7 | +For a complete installation & syncing, make use of `./src/main.sh`. Before that It's recommend to change the mounting location declared in `./src/borgserver.sh`. |
8 | 8 |
|
9 | 9 | ```bash
|
10 | 10 | #!/bin/bash
|
11 | 11 | ./src/main.sh
|
12 | 12 | ```
|
13 | 13 |
|
14 |
| -## <u> Rsync Backup Location </u> |
| 14 | +## <u> Borgbackup Server </u> |
15 | 15 |
|
16 |
| -Change location of the declared variables `backup_mount_dir` and `backup_home_dir` to the wished ones in `./src/rsync.sh`. `rsync.sh` checks if the path exists. The backed up locations are also declared in the same script file as map/dict. |
| 16 | +Change location of the declared mounting directory `mount_dir` if needed. The location paths that are to transfer from the source (borgbackup archive) to the destination (current OS) are declared as map or dict. Also the script checks if both directories exits and tranfers the data via `rsync` to the destination. |
17 | 17 |
|
| 18 | +## <u> Seperately Setting Up </u> |
18 | 19 |
|
19 |
| -## <u> Seperatly Setting Up </u> |
| 20 | +It's also possible to use the scripts `./src/inst.sh` and `./src/borgserver.sh` seperately. The `./src/main.sh` does load first the installation script and after that the borgbackup server script. But only in `./src/main.sh` is the function to keep-alive the sudo permission implemented so for a unattended installation it's recommended to use that script. |
20 | 21 |
|
21 |
| -It's also possible to use seperatly *either* the package installation script *or* the recovery of data using `rsync`. Here only the installation of packages declared in the package files located at `./src/packages/**.txt`. |
| 22 | +To install declared packages with Pacman, Yay and Flatpak. Afterwards it's loading manually the needed kernel modules (also declared in a file) and setting up services like database servers and more. |
22 | 23 |
|
23 | 24 | ```bash
|
24 | 25 | #!/bin/bash
|
25 |
| -./src/inst.sh # install packages with pacman, yay & flatpak |
| 26 | +./src/inst.sh # installing (via pacman, yay & flatpak) and enabling services |
26 | 27 | ```
|
27 | 28 |
|
28 |
| -Or only copying backup files to the newly installed operating system. |
| 29 | +To transfer data from borgbackup archive to current OS. |
29 | 30 |
|
30 | 31 | ```bash
|
31 | 32 | #!/bin/bash
|
32 |
| -./src/rsync.sh # recovery data using rsync |
| 33 | +./src/borgserver.sh # recovery data using rsync |
33 | 34 | ```
|
0 commit comments