summaryrefslogtreecommitdiff
path: root/public/images/siege-tower.svg
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-05 12:18:00 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-05 13:49:00 +0200
commite4e8744269b4c322323751da66eff9220ddd92e1 (patch)
tree805bc98c6615585d3939eecb7eae688ccdf3695e /public/images/siege-tower.svg
parentc4962601eb88ca3a51c0f7ba31cc2bd251ee9038 (diff)
downloadserver-e4e8744269b4c322323751da66eff9220ddd92e1.tar.gz
Trigger backup from main database process.
Sqlite backups from the same database connection are much more efficient! Externally triggered backups restart every time the database changes during a backup, or need to lock the database exclusively for a long time. We periodically look for a "backup.request" file, and if it exists will write a backup. We write to "backup.tmp" first, and when finished rename the file to "backup.db". A crontab job can touch the "backup.request" file and then wait for the "backup.db" file to appear.
Diffstat (limited to 'public/images/siege-tower.svg')
0 files changed, 0 insertions, 0 deletions