Skip to content

Commit b78bfc4

Browse files
committed
changed README.md & borgbackup.sh
1 parent 45aa004 commit b78bfc4

File tree

2 files changed

+31
-9
lines changed

2 files changed

+31
-9
lines changed

README.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,43 @@
11
# Arch Installation Script
22

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.
44

55
# Getting Started
66

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.
88

99
```bash
1010
#!/bin/bash
1111
./src/main.sh
1212
```
1313

14-
## <u> Borgbackup Server </u>
14+
## <u> Borgbackup </u>
1515

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
31+
repo_password="$ROOT_DIR/server/pass.txt" # optional
32+
```
33+
34+
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.
1735

1836
## <u> Seperately Setting Up </u>
1937

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
2141

2242
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.
2343

@@ -26,6 +46,8 @@ To install declared packages with Pacman, Yay and Flatpak. Afterwards it's loadi
2646
./src/inst.sh # installing (via pacman, yay & flatpak) and enabling services
2747
```
2848

49+
### Borgbackup Script
50+
2951
To transfer data from borgbackup archive to current OS.
3052

3153
```bash

src/borgserver.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ if [[ -z "$ROOT_DIR" ]]; then
66
fi
77

88
# borg server
9-
ssh_key="$ROOT_DIR/server/backupserver"
10-
ssh_port=22
11-
repo="ssh://borg@server:$ssh_port/mnt/repo"
12-
repo_password="$ROOT_DIR/server/pass.txt"
9+
ssh_key="$ROOT_DIR/server/backupserver" # change me
10+
ssh_port=22 # change me
11+
repo="ssh://borg@server:$ssh_port/mnt/repo" # change me
12+
repo_password="$ROOT_DIR/server/pass.txt" # optional
1313

1414
# locations
1515
mount_dir="/tmp/borg"

0 commit comments

Comments
 (0)