rsync+btrfs+dm-crypt Backup the entire system - Evian's Blog.
In fact, it is recommended to use a file system that supports snapshots, such as zfs or btrfs (you can also use solutions such as LVM), otherwise there may still be consistency problems with online backup (for example, the PostgreSQL document clearly states that if you do not use snapshots way, it does not guarantee that your backup will be available).
rsync+btrfs+dm-crypt Backup the entire system - Evian's Blog.
In fact, it is recommended to use a file system that supports snapshots, such as zfs or btrfs (you can also use solutions such as LVM), otherwise there may still be consistency problems with online backup (for example, the PostgreSQL document clearly states that if you do not use snapshots way, it does not guarantee that your backup will be available).
Directly rsync the corresponding directory
You can try to make a mirror
For industrial-grade backup, please write your own program to achieve at least the following functions:
1. Data replication, supports local replication and network replication.
2. Data verification.
Many people think that backup is just copying without verification, which leads to various problems in the end.
ddTo file; finished...
Backup/Restore Linux with tar
Backup/Restore MBR with dd