leyvi wrote:I've been using Gentoo for almost 2 years now, and I'd like to back up my system before something goes catastrophically wrong. The thing is, there's an absolutely insane number of different ways I could do this, and I'm having difficulty picking one. I just got a 512 GB USB drive, and formatted it. I'd like to use it for storing backups somehow, but I don't know whether to use rsync, tar, or something else?
Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001Maybe read number 2 of: https://wiki.gentoo.org/wiki/User:Pieti ... _recommendleyvi wrote:I've been using Gentoo for almost 2 years now, and I'd like to back up my system before something goes catastrophically wrong. The thing is, there's an absolutely insane number of different ways I could do this, and I'm having difficulty picking one. I just got a 512 GB USB drive, and formatted it. I'd like to use it for storing backups somehow, but I don't know whether to use rsync, tar, or something else?
Code: Select all
#!/bin/sh
date | tee /var/log/snapshot-mail.log
# echo "-------- /bin/mount /home/backup -------" | tee -a /var/log/snapshot-mail.log
/bin/mount -L USB_HOME /home/backup | tee -a /var/log/snapshot-mail.log
ls -l /home/backup/Server-1 | tee -a /var/log/snapshot-mail.log
echo "-------- rsnapshot -c /etc/rsnapshot-mail.conf $1 -------" | tee -a /var/log/snapshot-mail.log
rsnapshot -c /etc/rsnapshot-mail.conf $1 | tee -a /var/log/snapshot-mail.log
ls -l /home/backup/Server-1 | tee -a /var/log/snapshot-mail.log
# echo "-------- /bin/umount /home/backup -------" | tee -a /var/log/snapshot-mail.log
/bin/umount /home/backup | tee -a /var/log/snapshot-mail.log
date | tee -a /var/log/snapshot-mail.logCode: Select all
#!/bin/sh
date | tee /var/log/snapshot-server.log
echo "-------- /bin/mount /home/backup -------" | tee -a /var/log/snapshot-server.log
/bin/mount -L USB_HOME /home/backup | tee -a /var/log/snapshot-server.log
ls -l /home/backup/Server-1 | tee -a /var/log/snapshot-server.log
echo "-------- rsnapshot -c /etc/rsnapshot-server.conf $1 -------" | tee -a /var/log/snapshot-server.log
rsnapshot -c /etc/rsnapshot-server.conf $1 | tee -a /var/log/snapshot-server.log
ls -l /home/backup/Server-1 | tee -a /var/log/snapshot-server.log
echo "-------- /bin/umount /home/backup -------" | tee -a /var/log/snapshot-server.log
/bin/umount /home/backup | tee -a /var/log/snapshot-server.log
date | tee -a /var/log/snapshot-server.logCode: Select all
#Mins Hours Days Months Day of the week
01 * * * * /opt/bin/snapshot-mail hourly
16 3 * * * /opt/bin/snapshot-mail daily
31 4 * * 7 /opt/bin/snapshot-mail weekly
46 6 1 * * /opt/bin/snapshot-mail monthly
31 7 * * 7 /opt/bin/snapshot-server weekly
46 1 1 * * /opt/bin/snapshot-server monthly
Feature wire this looks good, but it's manual states:My recommendation is app-backup/borgbackup.
This is a huge red flag for me. The last thing you want is "I can't restore my important data because i just upgraded borgbackup".EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER CHANGES (like when going from 0.x.y to 1.0.0 or from 1.x.y to 2.0.0).
I think they may break *forward* compatibility. Your new borg will read your old backups (perhaps with some precaution, https://borgbackup.readthedocs.io/en/st ... rade-notes , but your rescue media with old borg may not restore subsequent backups. So yes, some caution required for full restores after a hardware failure.pa4wdh wrote:Feature wire this looks good, but it's manual states:My recommendation is app-backup/borgbackup.This is a huge red flag for me. The last thing you want is "I can't restore my important data because i just upgraded borgbackup".EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER CHANGES (like when going from 0.x.y to 1.0.0 or from 1.x.y to 2.0.0).
Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Code: Select all
# borg mount borgs@borgserver:backup /mnt/backup
# ls /mnt/backup
panther-2025-05-02T10:59:21 panther-2025-07-01T19:00:00
panther-2025-05-31T19:00:00 panther-2025-07-02T19:00:00
panther-2025-06-08T19:00:00 panther-2025-07-03T19:00:00
panther-2025-06-15T19:00:00 panther-2025-07-04T19:00:00
panther-2025-06-22T19:00:00 panther-2025-07-05T19:00:00
panther-2025-06-29T19:00:00 panther-2025-07-06T19:00:00
panther-2025-06-30T19:00:00
# ls '/mnt/backup/panther-2025-07-06T19:00:00'
bin etc home lib64 opt root setup-chroot var
boot files lib mnt readme-uefi.txt sbin usr