The ServeHub-2 project infrastructure, consisting of a remote VPS and a home server, now utilizes a two-tier backup system. Data is stored locally on each server and mirrored to an S3-compatible object storage.
The system employs BorgBackup for encrypted, deduplicated backups, managed via Borgmatic. Rclone handles the synchronization of local repositories to S3, while systemd timers automate the process.
To ensure data consistency, the system temporarily stops Docker Compose services during backup. Specific services, such as Node Exporter and AmneziaWG, are excluded from this shutdown process.
The configuration uses LZ4 compression and encryption with a repokey-blake2 parameter. Local repositories are stored in specific directories, with an option to mount a dedicated HDD on the home server.
The setup uses Timeweb Cloud S3 with a cold storage class. The rclone sync command ensures that the remote S3 storage maintains an exact mirror of the local repository, including the deletion of old archives.





