Archive for Oktober 9th, 2020

Landkreis Erding (Stand 09 Oktober 2020) – so verteilen sich die Coronavirus Patienten

Freitag, Oktober 9th, 2020

Bayerischer Ministerpräsident Dr. Markus Söder – Pressestatements mit Österreichs Bundeskanzler Sebastian Kurz

Freitag, Oktober 9th, 2020

Software AG – Malware Infektion bei internen Systemen und bislang konnte der Befall noch nicht restlos eingedämmt werden

Freitag, Oktober 9th, 2020

Samba – btrfs und shadow copies

Freitag, Oktober 9th, 2020

   Samba – btrfs und shadow copies

# fdisk -l
# apt-get install btrfs-tools
# mkfs.btrfs -f /dev/sda
# mkdir -p /samba/Filespace
# mount /dev/sda /mnt/
# btrfs subvolume create /mnt/Filespace
# btrfs subvolume create /mnt/Filespace/.snapshots
# umount /mnt
# blkid /dev/sda
# vi /etc/fstab:
UUID=1c2551dc-8cee-41c4-999c-20d57becbcb7 /samba/Filespace btrfs subvol=Filespace 0 0
UUID=1c2551dc-8cee-41c4-999c-20d57becbcb7 /samba/Filespace/.snapshots btrfs subvol=Filespace/.snapshots 0 0
# mount -a
# apt-get install samba
vi /etc/samba/smb.conf
[Samba-BTRFS-Test]
comment = Samba BTRFS test folder
path = /samba/Filespace
vfs objects = shadow_copy2
shadow:format = @GMT_%Y.%m.%d-%H.%M.%S
shadow:sort = desc
shadow:snapdir=.snapshots
shadow:localtime = yes

writable = yes
browseable = yes
guest ok = yes
# chmod 777 /samba/Filespace
# /etc/init.d/smbd restart
# btrfs subvolume snapshot -r /samba/Filespace/ /samba/Filespace/.snapshots/@GMT_`date +%Y.%m.%d-%H.%M.%S`

# btrfs subvolume list /samba/Filespace/
ID 256 gen 37 top level 5 path Filespace

ID 258 gen 40 top level 256 path .snapshots
ID 261 gen 23 top level 258 path .snapshots/@GMT_2020.10.03-17.50.16
ID 262 gen 24 top level 258 path .snapshots/@GMT_2020.10.03-17.56.34
ID 263 gen 26 top level 258 path .snapshots/@GMT_2020.10.03-18.10.01
ID 264 gen 28 top level 258 path .snapshots/@GMT_2020.10.03-19.11.31
ID 265 gen 33 top level 258 path .snapshots/@GMT_2020.10.03-20.21.29
ID 266 gen 37 top level 258 path .snapshots/@GMT_2020.10.04-16.14.33
# btrfs subvolume delete /samba/Filespace/.snapshots/@GMT_2020.10.03-17.50.16
# btrfs property set -ts /samba/Filespace/.snapshots/Backup-01 ro false
# btrfs subvolume snapshot -r /samba/Filespace/ /samba/Filespace/.snapshots/Backup-01
# btrfs subvolume snapshot -r /samba/Filespace/ /samba/Filespace/.snapshots/Backup-02
# mkdir /samba/Filespace/.snapshots/Backup-99
# btrfs send /samba/Filespace/.snapshots/Backup-01 | btrfs receive /samba/Filespace/.snapshots/Backup-99
# mkdir /samba/Filespace/.snapshots/Backup-99
# btrfs send -p /samba/Filespace/.snapshots/Backup-01 /samba/Filespace/.snapshots/Backup-02 | btrfs receive /samba/Filespace/.snapshots/Backup-99p

# vi /samba/btrfs-snapshot.sh
#!/usr/bin/env bash
set -x
btrfs subvolume snapshot -r /samba/Filespace/ /samba/Filespace/.snapshots/@GMT_`date +%Y.%m.%d-%H.%M.%S`
find /samba/Filespace/.snapshots -maxdepth 1 -type d -name ‚@GMT_*‘ -ctime +1 -exec btrfs subvolume delete {} \;
# chmod +x /samba/btrfs-snapshot.sh
# crontab -l
* * * * * /samba/btrfs-snapshot.sh

GIMP 2.10.22 – released with AVIF AV1 format support

Freitag, Oktober 9th, 2020

Landesamt für Sicherheit in der Informationstechnik (LSI) Nürnberg – ist die IT Sicherheitsbehörde des Freistaats Bayern

Freitag, Oktober 9th, 2020

Landesamt für Sicherheit in der Informationstechnik (LSI) Nürnberg – ist die IT-Sicherheitsbehörde des Freistaats Bayern

BR quer mit Christoph Süß – der Nobelpreis für die Erforschung Schwarzer Löcher geht nach Bayern

Freitag, Oktober 9th, 2020

Landkreis Erding (Stand 08 Oktober 2020) – so verteilen sich die Coronavirus Patienten

Freitag, Oktober 9th, 2020