AnQiCMS data backup covers three parts: database, files, and configuration.
database backup
Use mysqldump (MySQL) or pg_dump (PostgreSQL) to export the database to an SQL file.Suggest setting up scheduled automatic backup.
File backup
Backup the uploaded files in the public/uploads directory (images, documents, etc.). Use the rsync or tar command to package the backup.
Configure backup
Backup the conf.yaml configuration file, including database connections, port numbers, and other key configuration information.
Complete backup command
Under Linux, you can write shell scripts to complete database export, file packaging, and configuration copying with one click.配合cron实现定时备份。
Off-site backup
It is recommended to transfer the backup file to an off-site storage (such as object storage, another server) to prevent data loss due to local disasters.