Last active
September 8, 2025 07:43
-
-
Save steffen-wirth/8b837f7f5d7bf6a454cd864c2e3329eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **Schritt 1: Interface identifizieren** | |
| Finde heraus, wie dein Ethernet-Interface heißt: | |
| `ip link` | |
| Du siehst eine Liste wie: | |
| 1: lo: <LOOPBACK,...> | |
| 2: enp3s0: <BROADCAST,MULTICAST> ... | |
| 3: wlp2s0: <BROADCAST,MULTICAST> ... | |
| lo = Loopback (ignorieren) | |
| wlp2s0 = WLAN (ignorieren) | |
| Das Interface, das mit en... oder eth... beginnt, ist dein Kabelnetzwerk. | |
| **🛠 Schritt 2: Statische IP setzen** | |
| Nehmen wir an, das Interface heißt enp3s0. | |
| _Dann auf Laptop 1:_ | |
| ``` | |
| sudo ip addr flush dev enp3s0 | |
| sudo ip addr add 192.168.5.1/24 dev enp3s0 | |
| sudo ip link set enp3s0 up | |
| ``` | |
| _Auf Laptop 2:_ | |
| ``` | |
| sudo ip addr flush dev enp3s0 | |
| sudo ip addr add 192.168.5.2/24 dev enp3s0 | |
| sudo ip link set enp3s0 up | |
| ``` | |
| **🛠 Schritt 3: Prüfen, ob es funktioniert** | |
| _Auf Laptop 1:_ | |
| `ping 192.168.5.2` | |
| IP-Adressen prüfen - Führe auf beiden Laptops aus: | |
| `ip addr` | |
| Du solltest etwas sehen wie: | |
| `2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> ... | |
| inet 192.168.5.1/24 brd 192.168.5.255 scope global enp3s0` | |
| Kopieren von Dateien | |
| mit Netcap | |
| Port 5000 in Firewall auf Zielort freischalten | |
| `sudo ufw allow 5000/tcp` | |
| Auf Laptop 2 - Zielort - Netcap Listener starten: | |
| `nc -l -p 5000 | tar -xvf -` | |
| Auf Laptop 1 - Quell Ort: | |
| `tar -cvf - -C /home/xyz | nc 192.168.5.2 5000` | |
| **Test** | |
| `echo "Hallo Laptop 2" | nc 192.168.5.2 5000` | |
| **RSYNC Konfiguration** | |
| rsync über Daemon (kein SSH nötig) | |
| Auf Laptop 2 (Empfänger): | |
| Temporäre Konfigurationsdatei anlegen, z. B. /tmp/rsyncd.conf: | |
| ``` | |
| [backup] | |
| path = /home/xyz | |
| read only = false | |
| uid=1000 | |
| gui=1000 | |
| ``` | |
| Rsync-Server starten: | |
| `rsync --daemon --config=/tmp/rsyncd.conf` | |
| Auf Laptop 1 (Sender): | |
| `rsync -avzP /home/xyz/ rsync://192.168.5.2/backup/` | |
| Jetzt läuft das ohne SSH, und du kannst abbrechende Verbindungen beliebig oft neu starten – rsync überträgt nur den fehlenden Rest. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment