Backups and restore¶
Every update copies the database first (/home/flyingport/backups/, the 10 newest are kept). For backups
of your own, copy /home/flyingport/db/ while FlyingPort is stopped, or with sqlite3 ... ".backup ..." while it runs.
Restore a copy¶
rcctl stop flyingport
cp -p /home/flyingport/backups/<date>-<version>/flyingport.db* /home/flyingport/db/
rcctl start flyingport
A copy belongs to the release named in its directory: restore it with that release running (below), or with a newer one, which migrates it on start.
Go back to an earlier release¶
The 3 newest releases stay in /home/flyingport/releases/. Its database may already be migrated by the newer release,
so go back together with the copy taken before the update:
rcctl stop flyingport
ln -sfn /home/flyingport/releases/<version> /home/flyingport/current
cp -p /home/flyingport/backups/<date>-<version>/flyingport.db* /home/flyingport/db/
rcctl start flyingport
The next run of flyingport-update installs the newest release again; to stay on the earlier one, take the update out
of root's crontab first (crontab -e).