Ask HN: Linux Machine Periodic Backup
I have been using MacOS for a long time and have always had a peace of mind using the Time Machine backup.
Just now migrated to a Linux machine - and I was wondering what would be the available options for Linux Backup. Found
1. https://www.duplicati.com/
2. Plain old rsync
Any comments on these and/or any other programs/methods you use.
6 comments
[ 0.23 ms ] story [ 15.1 ms ] threadI also have a separate backup folder, that is too big for Nextcloud, but that I want to backup from time to time. Those files are copied to a FTP server using rclone. I just have this line in crontab, so that it backs them up weekly.
0 4 * * 1 rclone copy /folder-to-backups backups-config
The only lacking thing is backing up full state of the machine but for that purpose I will probably move to guix or nix. Unfortunately it is a lot of work and I didn't started it yet.
/home partition: Straight-out cpio backup in full (around 9-10 gigs). The /home partition is restricted to work-in-progress directories and personal documents. I break that large cpio file into 2000MB chunks so that they can be transferred on any USB thumb-drive.
There is no need to hold anything else in the /home partition. Anything you keep 'for later' goes straight to an archive partition.(Photos, music, videos, software, ebooks,etc.)
Archive directories/partition(s): plain old rsync. The first time you do this, it will take hours. Subsequent rsync backups take only a few minutes for (say) 8TB of archives because you make very few changes to an archive partition on a daily basis.
System partition: This is where you get sneaky. Only backup the important information, such as:
The thing with the system backup is that you only keep the stuff that will allow you to completely rebuild the system in the case of a disaster. You can re-install the distro and then rebuild the system to your specifications in less than two hours if need be. That is only about 2-3 gigs of backup space rather than (say) 20 gigs.Here is the 'ls' and 'du' output of my last night's non-archive backup. Total 12 gigs. 'centrepoint' is the machine's name.