使用 bup 流式备份 SQLite 数据库
以下代码片段可用于使用 bup 即时备份 SQLite 数据库。此方法使用 bup split 将 SQLite 数据库转储直接流式传输到 bup 仓库,而不是先保存到中间文件
sqlite_bup_stream.sh
sqlite3 ./kuma.db .dump | bup -d $BUP_DIR split -r $BUP_REMOTE -n $NAME-sqlite.sql有关从 docker-compose 设置备份 SQLite 数据库的完整示例,请参见使用 bup remote 备份 UptimeKuma。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow