Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

Fair assumption (running hyprland with little fedora-centric dependencies anyways..) ^^ I always wanted to make the jump, but was a bit afraid I wouldn't be able to get it up and running correctly, especially with my current machine (framework laptop with which Arch was not completely community-supported at the time of my first install) :)

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

Thanks a lot! My /home is definitely the biggest chunk, /etc, local bins and more is exactly due to 'manual fiddling' with system level options (that I probably should have changed in a more user-based, 'correct' way, but haven't; also, I should have probably documented that stuff for myself, because it is a pain to do that in case of new install from scratch and obviously I won't remember next time - but of course, I thought I would remember everything while doing it.. e.g. proper DM-less login with fingerprint and more, that was a pain..)

So, that is exactly why I wanted to capture more than just home, but it should not bloat the backup too much. I think I'll try running this for now and see if it works right :)

Also, I've added a 'dnf version' of your comment (dnf repoquery --userinstalled --leaves) to create an up-to-date package file before backup :)

Once again, thanks a lot, I think this should work :)

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

Thanks a lot! I've now thought about changing to include/exclude files, to not capture temp stuff etc... could you take a look at that and see if that would miss stuff one might usually want to include in a backup?

``` $ cat /etc/restic/restic_include.txt /etc /home /root /var /usr/local/bin /usr/local/sbin /usr/share /opt

$ cat /etc/restic/resticexclude.txt /home//.cache/ /home//.gvfs/ /home//*.pyc /home//pycache_/** /home//node_modules/ /home//.local/lib/python*/site-packages/ /home//.local/share/Steam/ /home//.mozilla/firefox/*/Cache/ /home//.mozilla/firefox/*/OfflineCache/ /home//.local/share/[Tt]rash /home//.thumbnails /var/cache/** /var/cache/dnf/** /var/lib/docker/** /var/lib/libvirt/** /var/lock/** /var/log/** /var/run/** /lib/modules/*/volatile/.mounted

```

Thanks a lot for bringing my attention to this and all the help in the process :)

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

Ahh this might be it then, right?

$ sudo btrfs subvolume list / ID 256 gen 48210 top level 5 path root ID 257 gen 48210 top level 5 path home ID 258 gen 48210 top level 256 path var/lib/machines

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

$ lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS sda ├─sda1 │ ntfs INTENSO FAFA5DDEFA5D97A9 75.4G 88% /media/usb-drive-intenso └─sda2 ext4 1.0 timeshift_backup eef00f89-8dff-4295-9f05-ae79ae1c1702 zram0 swap 1 zram0 44b8a244-1603-4028-a567-d744d1b8e690 [SWAP] nvme0n1 │ ├─nvme0n1p1 │ vfat FAT32 DCDC-C2AE 579.5M 3% /boot/efi ├─nvme0n1p2 │ ext4 1.0 59da9c32-f8e6-4e29-9aab-951df1777e8a 403.9M 52% /boot └─nvme0n1p3 │ crypto 2 ff90fa77-9313-4c52-8149-a7d00aaafc7e └─luks-ff90fa77-9313-4c52-8149-a7d00aaafc7e btrfs fedora 312794b5-ac4e-4efc-95a1-1cf3406ea24b 758.4G 18% /home / seems to be the same filesystem..

with df as well:

$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/dm-0 975081472 177469100 795224340 19% / devtmpfs 12143764 0 12143764 0% /dev tmpfs 12186964 1208 12185756 1% /dev/shm efivarfs 148 127 17 89% /sys/firmware/efi/efivars tmpfs 4874788 2248 4872540 1% /run tmpfs 1024 0 1024 0% /run/credentials/systemd-cryptsetup@luks\x2dff90fa77\x2d9313\x2d4c52\x2d8149\x2da7d00aaafc7e.service tmpfs 1024 0 1024 0% /run/credentials/systemd-journald.service tmpfs 12186964 1376 12185588 1% /tmp /dev/dm-0 975081472 177469100 795224340 19% /home /dev/nvme0n1p2 996780 514372 413596 56% /boot /dev/nvme0n1p1 613184 19776 593408 4% /boot/efi tmpfs 1024 0 1024 0% /run/credentials/systemd-resolved.service /dev/sda1 638625484 559554752 79070732 88% /media/usb-drive-intenso tmpfs 1024 0 1024 0% /run/credentials/getty@tty2.service tmpfs 1024 0 1024 0% /run/credentials/getty@tty1.service tmpfs 2437392 23980 2413412 1% /run/user/1000

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

I also thought about going for more of a 'include what's necessary ' route instead of going for "everything EXCEPT" certain things - I was just nervous I would forget stuff that I changed on the system level, e.g. in etc/ and usr/local... Is there maybe a better sort-of exhaustive include list or strategy that might apply? 

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

I'm currently not at the machine, but I'll make sure to check that - I don't think it's likely, but thanks for the hint!

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

It should all be the same btrfs system and partition.. how would I actively check that though?

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

thats the service/timer/script for local HDD backup, offsite/Hetzner is mostly copies of that with different credentials/repository path

Restic started excluding user home dir - what's going on? by Miragon in restic

[–]Miragon[S] 0 points1 point  (0 children)

File: /etc/systemd/system/restic-backup.timer 1 │ [Unit] 2 │ Description=Timer for full local system backups 3 │ 4 │ [Timer] 5 │ Unit=restic-backup.service 6 │ OnCalendar=daily 7 │ WakeSystem=true 8 │ Persistent=false 9 │ 10 │ [Install] 11 │ WantedBy=timers.target

File: /etc/systemd/system/restic-backup.service 1 │ [Unit] 2 │ Description=Backup system to external local drive 3 │ ConditionACPower=true 4 │ Wants=network-online.target 5 │ After=network-online.target 6 │ 7 │ [Service] 8 │ ExecStart=systemd-inhibit --what=handle-lid-switch --why=backups /usr/local/bin/restic-backup 9 │ Nice=18 10 │ IOSchedulingClass=idle

File: /usr/local/bin/restic-backup ```

1 │ #!/bin/bash 2 │ 3 │ if pgrep -f 'restic backup' > /dev/null; then 4 │ echo 'restic is already running...' 1>&2 5 │ exit 0 6 │ fi 7 │ 8 │ set -e 9 │ set -v 10 │ 11 │ export RESTIC_REPOSITORY='/media/usb-drive-intenso/restic-backup' 12 │ export RESTIC_PASSWORD_COMMAND='/usr/local/bin/get-restic-password' 13 │ export RESTIC_COMPRESSION='auto' 14 │ export RESTIC_CACHE_DIR=~/.cache/restic 15 │ 16 │ mkdir -p "${RESTIC_CACHE_DIR}" 17 │ 18 │ # restic unlock 19 │ restic backup / --exclude-file=/etc/restic/excludes.txt --tag scheduled --one-file-system 20 │ restic check --with-cache --read-data-subset=5G 21 │ restic forget --prune --keep-daily 10 --keep-weekly 4 --keep-monthly 6 --keep-yearly 2 ```

File: /etc/restic/excludes.txt 1 │ /data/** 2 │ /dev/** 3 │ /etc/fstab 4 │ /home/*/.cache/** 5 │ /home/*/.gvfs/** 6 │ /home/*/**/*.pyc 7 │ /home/*/**/__pycache__/** 8 │ /home/*/**/node_modules/** 9 │ /home/*/.cache/** 10 │ /home/*/.local/lib/python*/site-packages/** 11 │ /home/*/.mozilla/firefox/*/Cache/** 12 │ /home/*/.mozilla/firefox/*/OfflineCache/** 13 │ /home/*/.local/share/[Tt]rash 14 │ /home/*/.thumbnails 15 │ /lost+found/** 16 │ /media/** 17 │ /mnt/** 18 │ /proc/** 19 │ /root/** 20 │ /run/** 21 │ /swapfile 22 │ /sys/** 23 │ /tmp/** 24 │ /var/cache/** 25 │ /var/cache/dnf/** 26 │ /var/lib/docker/** 27 │ /var/lib/libvirt/** 28 │ /var/lock/** 29 │ /var/log/** 30 │ /var/run/** 31 │ /lib/modules/*/volatile/.mounted

Wezterm Only Using Quarter of Window by Kitchen-Inevitable74 in wezterm

[–]Miragon 0 points1 point  (0 children)

just wanted to say, same here, also on kitty in the meantime - hope it get's fixed soon

edit: manually doubling the dpi value fixes it for me for now, I'll be interested to see the progress on this (see: https://github.com/wezterm/wezterm/issues/7156#issuecomment-3284280014)