Brauche mal Hilfe für #linux #debian #trixie #nas #usbraid #nfs #usb #rsync #bash.

Ich habe ein #Script das nicht funktioniert und doch funktioniert *grrrr*

(Script Begin)
#!/bin/bash

set -ex

# check for mount
grep /backup /etc/mtab > /dev/null || exit 1

# directory to backup
BDIR=/home/wilma_wein/

# Destination dir for rsync
DDIR=/media/backup

# excludes file - this contains a wildcard pattern per line of files to exclude
EXCLUDES=/root/rsy.excl

# BACKUPDIR=${1:-`date +%A`}
BACKUPDIR=${1:-"day"`date +%d`}

OPTS="--force
--ignore-errors \
--delete-excluded \
--exclude-from=$EXCLUDES
--delete --backup --backup-dir=$DDIR/$BACKUPDIR -a -v"

export PATH=$PATH:/bin:/usr/bin:/usr/local/bin

# if destination does not exist, make it;-)
[ -d $DDIR ] || mkdir $DDIR

# write logfile
echo oooooooooooooooooooooooooooooooooooooooooooo >> /root/rsy.log
date >> /root/rsy.log

# delete existing backup dir
[ -d $DDIR/$BACKUPDIR ] && (echo remaking $DDIR/$BACKUPDIR >> /root/rsy.log; rm -r $DDIR/$BACKUPDIR)

# now the actual transfer
rsync $OPTS $BDIR $DDIR/current >> /root/rsy.log

(Script Ende)
.
.
Dieses Script soll mir mein komplettes /home sichern und gelöschte dateien in den heutigen Tag (Ordner day20 anlegen) und die gelöschte oder alte Datei (sofern geändert) verschieben. Die geänderte neue Datei im BackUp Ordner belassen.

Folgende Laufwerke sind in meiner #fstab gemountet:

# Angeschlossenes USB RAID Laufwerk.
/dev/sdb1 /media/USBRaid ext4 auto,nouser,exec,async,noatime 0 0
# Network Attached Storage Synology
192.168.2.120:/volume1/backup /media/synology223j/backup nfs auto,user,exec,async,noatime 0 0
.
.
Das Script funktioniert einwandfrei mit dem #USBRaid Laufwerk (RAID 0 - Striping)
aber nicht mit dem #Synology #NAS (RAID 1 - Mirroring), dort wird mir mein /home auch im Tagesordner gespeichert.
.
.
??? Kann sich hier wer vorstellen oder weiß warum das mit der #NAS nicht funzt ???

Excelente tutorial de @LastDragonMX para aprender a montar usb's y discos duros en #GNU #Linux para uso temporal o permanente.

Montar discos usando el clásico #fstab o el nuevo #systemd
https://youtu.be/VMQU6dmUSlk?si=BTtpDRYJPLrZKqGl

Montar discos usando el clásico fstab o el nuevo systemd

YouTube

Русская рулетка дедиков: Собираем RAID 1 + LVM на живой системе без Rescue-режима

Ситуация до боли знакома каждому, кто регулярно арендует выделенные серверы: вы оплачиваете счет, заходите по SSH и видите, что ОС установлена на /dev/sda, а второй диск просто болтается пустым. Никакого RAID, никакой отказоустойчивости. Умрет первый диск — ваши данные исчезнут. Мы в SoftStore идем по пути полного контроля над процессом. В этой статье разбираем пошаговый протокол: как собрать программный RAID 1 и LVM прямо на живой, работающей операционной системе без использования Rescue-режима и переустановки. В качестве бонуса — практика по управлению квотами, снапшотами и замене дисков в Production.

https://habr.com/ru/articles/1029498/

#RAID #LVM #mdadm #Linux #Debian #выделенный_сервер #миграция #системный_администратор #fstab #администрирование

Русская рулетка дедиков: Собираем RAID 1 + LVM на живой системе без Rescue-режима

Привет, хабр! Ситуация до боли знакома каждому, кто регулярно арендует выделенные серверы. Вы оплачиваете счет, заходите в панель хостера, выбираете Debian, жмете «Установить» и идете пить кофе. Через...

Хабр

Let's Learn Linux: Control mounting and unmounting of filesystems

https://watch.linuxrenaissance.com/w/v7HtQKdFbkTc4ZN5iAuRQT

Let's Learn Linux: Control mounting and unmounting of filesystems

PeerTube

#Linux #Festplatten #mounten & #automatisch einbinden – #fstab einfach erklärt!

In diesem Linux Tutorial zeige ich dir Schritt für Schritt, wie du Festplatten und Partitionen unter Linux mountest und mit fstab dauerhaft ins System einbindest.

Mit dem #mount #Befehl kannst du deine Festplatte überall in deinem Linux Betriebssystem einbinden und mit der fstab Datei kannst du den mount Vorgang automatisieren...

#Linux_Infinite

@LinuxInfinite

https://youtube.com/watch?v=w3gC80RQ0Tk&is=yIWR1bvMKGzThw2n

Linux Festplatten mounten & automatisch einbinden – fstab einfach erklärt!

YouTube
Glück Auf,
ich hab heute was cooles gebaut. Freude!
Mein Problem mit #foldersync #nextcloud #webdavfs und #smb auf #grapheneos zum #syncen im LAN hat sich entschärft.
Meine #qnap bindet die nextcloud über #hybridmount ein. Aber wozu? Heute habe ich das auf Datei-Cloud-Gateway umgestellt und kann damit die nextcloud über die NAS als SMB-Freigabe ansprechen. Den SMB Mount-Punkt in die #fstab gepackt und läuft! Schneller als über mount davfs. Macht wahrscheinlich der Cache auf der QNAP. So cool!😃
Always a bit scary editing the #fstab file. Trying to share the SteamLibrary folder with the kid so he doesn't fill his home folder with crap games.

@garyhtech

Operation not permitted probably because the ESP-related mount was unnecessary (it already existed).

Check the default /etc/fstab

This 2021 commit might be the milestone first of a series of commits that simplified things:

https://github.com/freebsd/freebsd-src/commit/0b7472b3d8d2f1e90fade5236b44fd98d8e396c2

#FreeBSD #boot #loader #EFI #UEFI #ESP #fstab

Mount the EFI system partition (ESP) on newly-installed systems. · freebsd/freebsd-src@0b7472b

Per hier(7), the ESP will be mounted at /boot/efi. On UFS systems, any existing ESP will be reused and mounted there; otherwise, a new one will be made. On ZFS systems, space for an ESP is allocate...

GitHub

A question for my knowledgeable friends:

I have an LVM with two VGs, one on each disk. VG1 has swap, / and a large empty LV (say, VG1-LV3). VG2 has my /home. I want to store my dropbox folder in VG1-LV3 (VG1 is my slower, replaceable storage). Question:

How do I mount it to /home/X/Dropbox so that it ONLY mounts for user X, and works on any login (ssh, shell, DE).

A simple fstab with uid,gid makes it visible to all.

#sysadmin #LVM #linux #advice #fstab #dropbox

@dvl

Retrospective. From @david_chisnall in June 2025:

https://lists.freebsd.org/archives/freebsd-hackers/2025-June/004631.html

"… raw device nodes. Nothing in the system appears to check the underlying partition type when enabling swap on these devices, so if you plug in another device and things are renumbered then swapping will write nonsense over a different partition …

"I think I have filed bugs about all of these issues. It would be great if folks looking to improve the installer could consider some of them. …"

Nothing open for swap with the 'install' keyword:

https://bugs.freebsd.org/bugzilla/buglist.cgi?keywords=install%2C%20&keywords_type=allwords&list_id=888775&order=Bug%20Number&query_format=advanced&short_desc=swap&short_desc_type=allwordssubstr

#FreeBSD #dataloss #swap #fstab

Re: Notes on improving the installer