Categories
Backup

Why rsync is bad for backups

While rsync is an excellent tool for transferring files, it has some limitations when it comes to creating consistent backups. You want at least crash consistent backups. There must be some kind of snapshotting of the filesystem.

Why Rsync Can’t Do Consistent Backups

Here are the main reasons why rsync can’t do consistent backups:

  1. File system snapshots: To create a consistent backup, you need to take a snapshot of the file system at a specific point in time. However, rsync relies on the file system’s metadata to determine which files have changed, and it doesn’t capture any information about the overall consistency of the file system.
  2. Transaction logs: Modern databases use transaction logs to maintain consistency. These logs track all changes made to the database since the last checkpoint or backup. rsync can’t understand these logs or replicate them, which means it can’t ensure consistency.
  3. Locking and concurrency: In a multi-user environment, multiple users might be modifying files simultaneously. rsync has no way of knowing whether a file was modified before or after the point at which you want to create a consistent backup.
  4. Partial writes: When writing data to disk, many applications don’t write the entire buffer in one go; instead, they break it up into smaller chunks and perform multiple partial writes. rsync can’t detect these partial writes or ensure that all parts of a file are written correctly.

What Rsync Does Instead

While rsync can’t create consistent backups like some other tools (e.g., snapshotting software), it excels at:

  1. Incremental backups: By keeping track of which files have changed, rsync allows you to perform incremental backups, significantly reducing the time and space needed for backup purposes.
  2. File-level consistency: rsync ensures that each file is consistent within itself; it just doesn’t guarantee overall system consistency.

Alternatives for Consistent Backups

If you need consistent backups, consider using other tools specifically designed for this purpose:

  1. Snapshots: Take regular snapshots of your file systems or volumes using software like LVM (Logical Volume Manager) or ZFS.
  2. Database backup solutions: Use specialized database backup tools, such as PostgreSQL’s pg_dump or MySQL’s mysqldump, to capture the entire database state at a given point in time.
  3. Backup software with consistency features: Utilize backup software that includes consistency features, like Veeam backup and replication, which can create consistent backups by taking snapshots of file systems and capturing transaction logs.

Categories
Backup

I only want Acronis True image to do backups

It is now called Acronis Cyber Protect Home Office. I reinstalled Windows on my computer because an upgrade from Windows 10 to Windows 11 made it only restart all the time. Yesterday i install Acronis True image. There was some error message about some Acronis driver that could not be loaded. After a while i noticed that some process was read from my Storage space drives all the time and 300MB/s. I thought it was synchronizing because i had some problem with one of the harddrives. After 12 hours it was still reading fast. I did a search mms_mini.exe. It is some Acronis service. I could not find any information on what it is doing. What does “Enables data of true image on the machine.” mean. 🤔I tried to pause the protection, but that did not stop the service from reading. I tried to stop mms_mini.exe, but it was difficult. I changed some Acronis services to manual startup. There was 10 Acronis services. After a restart it was calm. If i start True image it immediately starts reading hard drives fast. I cant see that it is doing anything in the GUI. The protection is permanently stopped. If i stop True image the reading stops. I have to look for some other image backup software.

Categories
Backup Linux

It is hard to do crash consistent bare metal recovery backups for Linux

Bacula, Urbackup and Proxmox backup server dont do bare metal recovery backups for Linux. Veeam can do it, but the kernel developers break the Veeam kernel module for every new version of the kernel. I now have trouble to make fedora stay on 5.16 kernel it always wants remove that version and replace it with 5.17. 5.16 is the last version that Veeam linux agent works with. Nakivo copied the entire disk when doing backup. I was only using 30GB but it always copied 600GB. Some idiots suggest you use dd. Then i would have to make a 600GB file for every backup. And the backup would not be consistent.

Categories
Backup

UrBackup makes it hard to test your backups

I tried to use the opensource backup software UrBackup. One thing they had done right is that there is a server and client part. It have a web interface like many backup softwares today. I dont like that. Desktop applications are better. Everything looked good until i came to testing the backup. There was only two ways to restore. Restore to original place or download a zip file. Testing a backup by restoring to original place is a bad way of testing a backup. I am not going to try to download 500GB zip file.