You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,43 @@
1
1
# Arch Installation Script
2
2
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.
3
+
A post-installation script for **Arch Linux/EndeavourOS**. It Installs automaticly packages that are declared within the `packages/**/*.txt` 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, make use of `./src/main.sh`. Before that It's recommend to change the mounting location declared in `./src/borgserver.sh`.
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`. Also before that you have to configure the connection to your borgbackup server.
8
8
9
9
```bash
10
10
#!/bin/bash
11
11
./src/main.sh
12
12
```
13
13
14
-
## <u> Borgbackup Server </u>
14
+
## <u> Borgbackup </u>
15
15
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.
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/dict. Also the script checks if both directories exits and tranfers the data via `rsync` to the destination afterwards.
17
+
18
+
### Borgbackup Server
19
+
20
+
To get the connection to a running borgbackup server running. You have to define a SSH URL, get your SSH private key ready and declare the repository password. Look for that into the `./src/borgserver.sh`.
21
+
22
+
```bash
23
+
#!/bin/bash
24
+
25
+
...
26
+
27
+
# borg server
28
+
ssh_key="$ROOT_DIR/server/backupserver"# change me
29
+
ssh_port=22 # change me
30
+
repo="ssh://borg@server:$ssh_port/mnt/repo"# change me
So `ssh_key`, `ssh_port` (if not port 22) and the `repo` adress has to be definied. The `repo_password` must not be given, but if so you don't have to put in the password for your borgbackup repository by hand.
17
35
18
36
## <u> Seperately Setting Up </u>
19
37
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.
38
+
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 implemented to keep-alive the sudo permission, so for a unattended installation it's recommended to use that script.
39
+
40
+
### Installation Script
21
41
22
42
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.
23
43
@@ -26,6 +46,8 @@ To install declared packages with Pacman, Yay and Flatpak. Afterwards it's loadi
26
46
./src/inst.sh # installing (via pacman, yay & flatpak) and enabling services
27
47
```
28
48
49
+
### Borgbackup Script
50
+
29
51
To transfer data from borgbackup archive to current OS.
0 commit comments