Alles anzeigen
Backupserver
Name: xenon03.tkbrew.lan (ixSystems TrueNAS Mini XL+)
Dienste: Backup für NAS und Fileserver
Lanintern oder öffentlich: Lanintern
Hardware: Intel Atom C3558 OctaCore, 64GB DDR4-ECC-Ram, 32GB DOM fürs Betriebssystem, 8x16TB 96TB RAID6 als Datengrab, 10GbE Netzwerk onboard, IPMI
Betriebssystem: TrueNAS Core
Nachts an oder aus: Wird bei Bedarf gebootet.
Fileserver
Name: xenon02.tkbrew.lan (Eigenbau)
Dienste: Fileserver für selten verwendeten Kram und als erstes Backup fürs NAS. s.u.
Lanintern oder öffentlich: Lanintern
Hardware: Intel Pentium G4400 Dual-Core, 48GB DDR4-ECC-Ram, 16GB USB-Stick fürs Betriebssystem, 7x10TB 50TB RAID6 als Datengrab, 10GbE Netzwerk onboard, IPMI
Betriebssystem: TrueNAS Core
Nachts an oder aus: Wird bei Bedarf gebootet.
NAS
Name: xenon01.tkbrew.lan (Synology DS1819+)
Dienste: Filesharing, Plex, Docker für Unifi Controller
Lanintern oder öffentlich: Lanintern
Hardware: Intel Atom C3538 QuadCore, 4GB DDR3-Ram, 4x16TB 48TB RAID5 als Datengrab, 1GbE Netzwerk onboard
Betriebssystem: Synology DSM 7
Nachts an oder aus: Dauerbetrieb
Beiträge von tk1908
-
-
Backup-Script
Bash
Alles anzeigen#!/bin/bash echo "############################################" echo "############################################" echo "# Backup-Script #" echo "# Author: tk1908 #" echo "# E-Mail: tk1908@tkbrew.net #" echo "# #" echo "############################################" echo "############################################" OS=$(uname) echo OS=$(uname) # ROOTPATH für Darwin vorerst im HOME, hier muss noch debuggt werden. Ordner-Erstellung unter Volumes schlägt scheinbar fehl. case $OS in Linux) ROOTPATH="/mnt" ;; Darwin) ROOTPATH="${HOME}/Test" ;; esac echo Funktionsaufruf HOSTS=(krypton keppler tesla) SHARES=( $(showmount -e keppler | awk '{print $1}' | sed '1d' | sed 's/^\(\/.*\)\/\(.*\)$/\2/') ) # Shareliste wird von keppler abgerufen. So ist sichergestellt, dass alle Shares erfasst werden. for HOST in "${HOSTS[@]}"; do sudo mkdir $ROOTPATH/$HOST; for SHARE in "${SHARES[@]}";do sudo mkdir $ROOTPATH/$HOST/$SHARE; done; done #tier2_Backup function tier3_Backup () { echo "Migrate Data from keppler to tesla" echo "Creating Directorystructure an mounting shares" for SHARE in "${SHARES[@]}"; do sudo mount ${HOSTS[2]}:/mnt/${HOSTS[2]}/$SHARE $ROOTPATH/${HOSTS[2]}/$SHARE; done for SHARE in "${SHARES[@]}"; do sudo mount ${HOSTS[3]}:/mnt/xenon01/$SHARE $ROOTPATH/${HOSTS[3]}/$SHARE; done # Vorsicht Array in tesla heißt immernoch xenon01. Muss noch geändert werden! rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/applications/ $ROOTPATH/${HOSTS[3]}/applications rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/documents/ $ROOTPATH/${HOSTS[3]}/documents rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/games/ $ROOTPATH/${HOSTS[3]}/games rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/hoerspiele/ $ROOTPATH/${HOSTS[3]}/hoerspiele rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/misc/ $ROOTPATH/${HOSTS[3]}/misc rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/music/ $ROOTPATH/${HOSTS[3]}/music rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/archive/porn/ $ROOTPATH/${HOSTS[3]}/porn rsync -rvu --exclude '#recycle' $ROOTPATH/${HOSTS[2]}/videos/ $ROOTPATH/${HOSTS[3]}/videos sudo umount /mnt/${HOSTS[2]}/* sudo umount /mnt/${HOSTS[3]}/* } tier3_Backup echo cleaning sudo umount $SOURCEMOUNTPATH sudo umount $TARGETMOUNTPATH sudo rm -rf /mnt/*Ausgabe
Code
Alles anzeigen❯ /home/tkoehler/Git/Projekte/Home/Scripts/Unix-Shell/Backup ############################################ ############################################ # Backup-Script # # Author: tk1908 # # E-Mail: tk1908@tkbrew.net # # # ############################################ ############################################ OS=Linux Funktionsaufruf mkdir: cannot create directory ‘/mnt/krypton’: File exists mkdir: cannot create directory ‘/mnt/krypton/wsusoffline’: File exists mkdir: cannot create directory ‘/mnt/krypton/videos’: File exists mkdir: cannot create directory ‘/mnt/krypton/music’: File exists mkdir: cannot create directory ‘/mnt/krypton/hoerspiele’: File exists mkdir: cannot create directory ‘/mnt/krypton/games’: File exists mkdir: cannot create directory ‘/mnt/krypton/backups’: File exists mkdir: cannot create directory ‘/mnt/krypton/archive’: File exists mkdir: cannot create directory ‘/mnt/krypton/pictures’: File exists mkdir: cannot create directory ‘/mnt/krypton/misc’: File exists mkdir: cannot create directory ‘/mnt/krypton/documents’: File exists mkdir: cannot create directory ‘/mnt/krypton/applications’: File exists mkdir: cannot create directory ‘/mnt/keppler’: File exists mkdir: cannot create directory ‘/mnt/keppler/wsusoffline’: File exists mkdir: cannot create directory ‘/mnt/keppler/videos’: File exists mkdir: cannot create directory ‘/mnt/keppler/music’: File exists mkdir: cannot create directory ‘/mnt/keppler/hoerspiele’: File exists mkdir: cannot create directory ‘/mnt/keppler/games’: File exists mkdir: cannot create directory ‘/mnt/keppler/backups’: File exists mkdir: cannot create directory ‘/mnt/keppler/archive’: File exists mkdir: cannot create directory ‘/mnt/keppler/pictures’: File exists mkdir: cannot create directory ‘/mnt/keppler/misc’: File exists mkdir: cannot create directory ‘/mnt/keppler/documents’: File exists mkdir: cannot create directory ‘/mnt/keppler/applications’: File exists mkdir: cannot create directory ‘/mnt/tesla’: File exists mkdir: cannot create directory ‘/mnt/tesla/wsusoffline’: File exists mkdir: cannot create directory ‘/mnt/tesla/videos’: File exists mkdir: cannot create directory ‘/mnt/tesla/music’: File exists mkdir: cannot create directory ‘/mnt/tesla/hoerspiele’: File exists mkdir: cannot create directory ‘/mnt/tesla/games’: File exists mkdir: cannot create directory ‘/mnt/tesla/backups’: File exists mkdir: cannot create directory ‘/mnt/tesla/archive’: File exists mkdir: cannot create directory ‘/mnt/tesla/pictures’: File exists mkdir: cannot create directory ‘/mnt/tesla/misc’: File exists mkdir: cannot create directory ‘/mnt/tesla/documents’: File exists mkdir: cannot create directory ‘/mnt/tesla/applications’: File exists Migrate Data from keppler to tesla Creating Directorystructure an mounting shares mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: Protocol not supported mount.nfs: mount point /mnt//wsusoffline does not exist mount.nfs: mount point /mnt//videos does not exist mount.nfs: mount point /mnt//music does not exist mount.nfs: mount point /mnt//hoerspiele does not exist mount.nfs: mount point /mnt//games does not exist mount.nfs: mount point /mnt//backups does not exist mount.nfs: mount point /mnt//archive does not exist mount.nfs: mount point /mnt//pictures does not exist mount.nfs: mount point /mnt//misc does not exist mount.nfs: mount point /mnt//documents does not exist mount.nfs: mount point /mnt//applications does not exist sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/applications" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/documents" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/games" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/hoerspiele" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/misc" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/music" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [sender] change_dir "/mnt/tesla/archive/porn" failed: No such file or directory (2) sent 19 bytes received 12 bytes 62.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] sending incremental file list rsync: [generator] recv_generator: mkdir "/mnt/videos" failed: Permission denied (13) *** Skipping any contents from this failed directory *** ./ sent 42 bytes received 19 bytes 122.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3] umount: /mnt/tesla/applications: not mounted. umount: /mnt/tesla/archive: not mounted. umount: /mnt/tesla/backups: not mounted. umount: /mnt/tesla/documents: not mounted. umount: /mnt/tesla/games: not mounted. umount: /mnt/tesla/hoerspiele: not mounted. umount: /mnt/tesla/misc: not mounted. umount: /mnt/tesla/music: not mounted. umount: /mnt/tesla/pictures: not mounted. umount: /mnt/tesla/videos: not mounted. umount: /mnt/tesla/wsusoffline: not mounted. umount: /mnt//keppler: not mounted. umount: /mnt//krypton: not mounted. umount: /mnt//tesla: not mounted. cleaning umount: bad usage Try 'umount --help' for more information. umount: bad usage Try 'umount --help' for more information. /mnt Irgendjemand ne Idee, was hier falsch läuft? Wenn ich die function tier3_Backup definiere und dann ausführe, dann tut alles.
-
Externer Inhalt www.youtube.comInhalte von externen Seiten werden ohne deine Zustimmung nicht automatisch geladen und angezeigt.Durch die Aktivierung der externen Inhalte erklärst du dich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
-
Eine Frage mit einer Gegenfrage zu beantworten ist sehr unhöflich, nur mal so. Aber um zu antworten:
Ich fahre ein geprüftes (und über die Inspektion fahrtüchtig gemachtes) Auto. Du verwendest ein nicht mehr supportetes OS produktiv. Der Vergleich hinkt ein wenig, aber gut von dir erwarte ich auch nix anderes.
Ich wiederhole mich: "Du nutzt ein nicht mehr supportetes OS produktiv? Warum?"
-
Du nutzt ein nicht mehr supportetes OS produktiv? Warum? Fährst du auch n Auto ohne TÜV?
-
Hab n IdeaPad Z50 adoptiert.
-
Bei mir ist n Macbook Air M1 dazugekommen.
-
Externer Inhalt www.youtube.comInhalte von externen Seiten werden ohne deine Zustimmung nicht automatisch geladen und angezeigt.Durch die Aktivierung der externen Inhalte erklärst du dich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
-
clik!84 reparier mal dein Quote
-
Themawechsel: ich habe bei Windows 11 Pro Netzwerkprobleme, so dass der Computer im Netzwerk nicht angezeigt oder gefunden werden kann. Mit Start+Ausführen und \\Desktop-TVTLUR9 wird er auch nicht gefunden und auch nicht mit der IP-Adresse. Was kann man dagegen tun?Internet geht.
Pingbar? Firewall aktiv?
-
So was ist für böse buben interessant.
Nicht euer Retro Rechner in der bastel oder zock stube.Jaja wenn du meinst.
-
Dream Theater - In the Presence of Enemies, Pt. 1
-
Nice, funzt. Danke

-
-
-
Bei mir ist n Macbook Air M1 dazugekommen
-
Hab mal was gebastelt.
Bash
Alles anzeigen#!/bin/bash echo "############################################" echo "############################################" echo "# Backup-Script #" echo "# Author: tk1908 #" echo "# E-Mail: tk1908@tkbrew.net #" echo "# #" echo "############################################" echo "############################################" OS=$(uname) case $OS in Linux) ROOTPATH = "/mnt";; Darwin) ROOTPATH = "/Volumes";; esac HOSTS=(krypton keppler tesla) #SHARES=(applications backups documents games misc movies music pictures series) SHARES=( $(showmount -e krypton |cut -d " " -f1 | sed '1d') ) # Gedankengang! Nicht prod. Reines dev. echo "Migrate from Data from krypton to xenon01" echo "Making Directorystructure and mounting shares" for HOST in ${HOSTS[*]} do sudo mkdir $ROOTPATH/$HOST/ done for SHARE in ${SHARES[*]} do sudo mkdir $ROOTPATH/$HOST/$SHARE/ mount $HOST$SHARE done done echo mounting SHARES sudo mount $HOST[] function tier2_Backup { rsync -rvu $ROOTPATH/$HOSTS[0]/documents/ $ROOTPATH/$HOSTS[1]/documents rsync -rvu $ROOTPATH/$HOSTS[0]/hoerspiele/ $ROOTPATH/$HOSTS[1]/hoerspiele rsync -rvu $ROOTPATH/$HOSTS[0]/music/ $ROOTPATH/$HOSTS[1]/music rsync -rvu $ROOTPATH/$HOSTS[0]/pictures/ $ROOTPATH/$HOSTS[1]/pictures rsync -rvu $ROOTPATH/$HOSTS[0]/videos/ $ROOTPATH/$HOSTS[1]/videos } function tier3_Backup { rsync -rvu $ROOTPATH/$HOSTS[1]/applications/ $ROOTPATH/$HOSTS[2]/applications rsync -rvu $ROOTPATH/$HOSTS[1]/documents/ $ROOTPATH/$HOSTS[2]/documents rsync -rvu $ROOTPATH/$HOSTS[1]/games/ $ROOTPATH/$HOSTS[2]/games rsync -rvu $ROOTPATH/$HOSTS[1]/hoerspiele/ $ROOTPATH/$HOSTS[2]/hoerspiele rsync -rvu $ROOTPATH/$HOSTS[1]/misc/ $ROOTPATH/$HOSTS[2]/misc rsync -rvu $ROOTPATH/$HOSTS[1]/music/ $ROOTPATH/$HOSTS[2]/music rsync -rvu $ROOTPATH/$HOSTS[1]/videos/Filme $ROOTPATH/$HOSTS[2]/movies rsync -rvu $ROOTPATH/$HOSTS[1]/videos/Serien $ROOTPATH/$HOSTS[2]/series } echo cleaning sudo umount $SOURCEMOUNTPATH sudo umount $TARGETMOUNTPATH sudo rm -rf /mnt/*Aktuell suche ich noch nach einer Möglichkeit, dein Output von showmount -e <hostname> so zu parsen, dass ich ihn als Input für meinen Mount-Befehl nutzen kann. Cutten kann ich den Output schon, aber irgendwas ist da noch schief. Vielleicht hat von euch ja jemand ne Idee.
-
Externer Inhalt www.youtube.comInhalte von externen Seiten werden ohne deine Zustimmung nicht automatisch geladen und angezeigt.Durch die Aktivierung der externen Inhalte erklärst du dich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
-
Einen wunderschönen Guten Mittag,
ich hab hier n kleines Problem, was in einem Bereich liegt, von welchem ich so absolut keine Ahnung habe.
Ich habe aktuell an einem KVM-Switch einen MacMini und meinen Rechner mit einem Monitor, einer Maus und einer Tastatur, so weit so gewöhnlich.
Der KVM-Switch hat auch Audio-Eingänge für die entsprechenden Systeme + 2 Klinken-Ausgänge an der Front (Line-Out und Mic).Diese Ausgänge haben allerdings eine extrem beschissene Qualität, was sich in Störgeräuschen bemerkbar macht. Ebenfalls ist die Tonquelle immer der, sich im Fokus befindliche Rechner, was für mich einfach nicht passt.
Jetzt suche ich eine Art Umschalter (Mischpult?) womit ich den Eingang des Tonsignals per Taste umschalten kann.
Gibts sowas? Oder habt ihr ne andere Idee, wie ich das realisieren könnte?
-
Meine erste: Nightmare von A7X
Meine bisher letzte: Final Days von Orden Ogan