Bit-breaker working in cybersecurity/IT. Only languages I know are English and Programming ones.

Sometimes I write things about technology.


If I told you the SHA256 for this sentence starts with 'c, 5, four, a, and a', would you believe me?

  • 0 Posts
  • 44 Comments
Joined 3 years ago
cake
Cake day: March 12th, 2022

help-circle










  • There’s a lot more going on with restic aside from just that, but yes. So with an rsync of your home dir (for example), it’s reliant on the FS to do compression and deduplication (ZFS,btrs), and/or it will still take up a lot of wasted space. Say you got ransom-wared. It’s okay you have that rsync backup, but oh crap it got ransom-wared to. No more backups to try? Restic gives you snapshots for whatever increment you set and just handles it simply. You can then restore one file from any of the snaphots (history) or every single file. Restoreing 250kb vs 400TB is quite a difference. The benefits of this, are huge even beyond the fire and forget capability.

    I mean, rsync handling everything via mirroring and pushed to a ZFS FS, would be sort of the same thing.








  • I use both (and others) for different reasons. However, the primary homelab server I use is based on Debian - Proxmox OS. It runs on the machine hardware you have but then you can run a few ‘fake’ computers (virtual machines) on top of that host OS. This is called a hypervisor. So when running Proxmox on the host, you could run a Virtual machine (guest) that is running Rocky and play around with that. Or Fedora, or Gentoo… or Arch. That really would be the avenue to go to learn about different Distros and nuances without having to breakdown and rebuild everything every time.

    My experience is that both Debian and Rocky are stable and very useful for what you need them to do. Debian favors stability, whereas Rocky favors being a RHEL compatible OS. It’s easier to do somethings on Debian, but you may learn more enterprise aspects using Rocky.


  • Your request goes against the unix philosophy. Grep does one thing and does it well. If you desire additional functionality, you should add another utility to accomplish what you want.

    rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ | grep denied

    In your specific task, utilize bashims to do (what I think) you want:

    rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ || echo "task failed"