Quantcast
Viewing all articles
Browse latest Browse all 4325

Beginners • Re: These nvme base hats look interesting but do not have access to them, perhaps someone here can answer a question I h

An alternative to RAID1 on 2 * 4TB. Image may be NSFW.
Clik here to view.
:idea:


PCIe NVMe adaptor with 4 TB. Big spinning rust disk on USB 3. You use the 4 TB SSD 24/7. Backintime or equivalent backup to the lump of iron. You can then recover to the day or hour or whatever your backup is set to. Some will backup every file the instant a file is closed.

Somewhat similar to what I do though what I do is a little more complex to setup.

I use a BTRFS root file system (which needs a modified initramfs) with on demand snapshots that are backed up to spiining rust overnight. User data (/home) is also on BTRFS and backed up in a similar manner. cron handles that without the need for additional software.

Pi that need their user data backed up mount /home from the one above over nfs.
I saw a vid where the user (on a PC) used 'timeshift' (in btrfs mode) to reboot straight into a btrfs snapshot: no "restore" or anything required. Is this something you know about or have tried?

Background: I have timeshift installed on an rpi4 (bullseye) with ssd. Timeshift is in "rsync" mode..

Code:

foo@pi23:~ $ sudo timeshift --list/dev/sdb1 is mounted at: /run/timeshift/backup, options: rw,relatimeDevice : /dev/sdb1UUID   : a830cc5e-7402-48de-afcd-5ef5b98cec70Path   : /run/timeshift/backupMode   : RSYNCStatus : OK6 snapshots, 56.3 GB freeNum     Name                 Tags  Description  ------------------------------------------------------------------------------0    >  2023-09-21_13-43-09  O                  1    >  2024-10-01_20-00-02  D                  2    >  2024-10-02_20-00-02  D                  3    >  2024-10-03_20-00-02  D                  4    >  2024-10-04_20-00-02  D                  5    >  2024-10-05_20-00-02  D
..where the storage is a thumb drive..

Code:

foo@pi23:~ $ lsscsi[0:0:0:0]    disk     USB      SanDisk 3.2Gen1 1.00  /dev/sdb [1:0:0:0]    disk    asmedia  ASMT1153e        0     /dev/sdafoo@pi23:~ $ lsblkNAME                   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTsda                      8:0    0 931.5G  0 disk ├─sda1                   8:1    0   256M  0 part /boot├─sda2                   8:2    0   128G  0 part /└─sda3                   8:3    0 803.3G  0 part   ├─pi23_data-hus      254:0    0   128G  0 lvm  /home/foo/usr/src  ├─pi23_data-gcc      254:1    0    16G  0 lvm  /usr/local/GCC  ├─pi23_data-llvm     254:2    0    32G  0 lvm  /usr/local/LLVM  ├─pi23_data-QT_6500r 254:3    0    18G  0 lvm  /usr/local/QT/6500r  ├─pi23_data-sw00     254:4    0    16G  0 lvm  [SWAP]  ├─pi23_data-QT       254:5    0    18G  0 lvm  /usr/local/qt  └─pi23_data-QT_6700r 254:6    0    18G  0 lvm  /usr/local/QT/6700rsdb                      8:16   1 114.6G  0 disk └─sdb1                   8:17   1 114.6G  0 part /run/timeshift/backup
..yeah there's LVM going on above as well but let's ignore that.

It produces snapshots according to schedule. There were two issues. Firstly, the rpi doesn't have GRUB. Secondly, at the time I installed timeshift it had a command line bug: it bombed out attempting a restore. You'd have to write a fresh rpi sdcard, install timeshift then use it's GUI to initiate the restore - doable but the rpi /boot/ (and with avoiding grub) hardly user friendly.

Things may have changed with bookworm what with /boot/firmware. Yes. I am trying to prod you into experimenting because I know nothing about btrfs. Image may be NSFW.
Clik here to view.
:-)

Statistics: Posted by swampdog — Sun Oct 06, 2024 1:37 am



Viewing all articles
Browse latest Browse all 4325

Trending Articles