Clonzilla vs. restic
Two is one and one is none.
Ny current backup system, mostly as a reminder for myself. While my laptop primarily resides on my desk, it also accompanies me to work a few times a week. Here's how I make sure my data is protected.
Clonezilla
My primary backup solution is Clonezilla, which I run from a USB stick to create a complete disk copy on an another external USB drive. This bit-for-bit copy ensures that I don't miss any files I might need later. If my hard drive fails, I can easily replace it, restore the latest backup, and be back up and running in no time. Clonezilla features an ncurses interface, making it relatively user-friendly, although I always worry about accidentally writing the backup to the source drive if I'm not careful.
I don’t encrypt the Clonezilla backups. The external drive is physically located in my home and only connected during backups, an acceptable risk. This waI can’t forget the password.
However, there are some drawbacks to this method. First, because Clonezilla creates an identical copy, it may not function properly with different hardware configurations. While I can replace the hard drive in my laptop, a complete laptop replacement could pose compatibility issues. That said, I can still restore individual files, so it's not a complete deal breaker.
Secondly, Clonezilla backups are not deduplicated, and since I back up my entire drive, I can only store one or two versions on the external drive.
Thirdly, the backup process is time-consuming, and I can't use my laptop while it's running. Although this ensures that no processes are active and no files are changing during the backup, it also means I don't perform backups as frequently as I'd like. My most recent backup is from four months ago, which isn't ideal.
This brings me to my secondary backup solution, which is faster, automated, and encrypted.
restic
Resitc is a command line backup tool. It stores snapshots of the directories you ask it to backup and stores them in a repository. This repository can be another location in the same disk or some remote system. It also compresses, dedupes and encrypts the data. It’s way faster as Clonezilla as it only copies the changes to the repository. It might be slow the first time but subsequent copies will be really fast. My restic repository lives on my Synology NAS and restic writes the backups to the NAS over SFTP. First enable SFTP. In Synology go to the Control Panel, File Services, FTP and enable the SFTP service (not the FTPS one). I kept port 22 as it means less configuration on the client. You'll also need to allow the user to use the SFTP service. In the Control Panel, under Users & Groups, open your user and click the Applications tab. Here allow the use of the SFTP application. Now you can access the Synology from another machine.sftp -o IdentitiesOnly=yes simon@keszthely.panda-forel.ts.net
Host keszthely
HostName keszthely.panda-forel.ts.net
User simon
IdentitiesOnly yes
restic init --repo sftp:keszthely:/drop/restic-repo
restic backup --repo sftp:keszthely:/drop/restic-repo ~/Documents/
restic snapshots --repo sftp:keszthely:/drop/restic-repo
restic diff --repo sftp:keszthely:/drop/restic-repo d56ed9d5 1c100c47
restic ls --repo sftp:keszthely:/drop/restic-repo
restic restore --repo sftp:keszthely:/drop/restic-repo --target /tmp latest
restic forget --repo sftp:keszthely:/drop/restic-repo --keep-daily 3 --keep-weekly 5 --keep-monthly 7 --keep-yearly 9