Backup Plans allows users to supply backup plans for their data.
Uses WRStat for directory data and IBackup for performing the actual backups.
For developing the frontend, the following can be run from the frontend
directory:
BACKUP_PLANS_CONNECTION="sqlite:/path/to/db.sqlite" XDG_STATE_HOME="/path/to/ibackup/token/dir/" go run -tags dev ../main.go server --listen LISTEN_PORT --admin ADMIN_GID --owners /path/to/wrstat/owners/file --bom /path/to/wrstat/bom.areas/file --config /path/to/config.yaml /path/to/tree/dbs/The included script frontend/embed.sh can be run to compile the frontend so that a simple go build will include the completed frontend.
You will need the following tools to run the embed script:
npm i -g tersergo install vimagination.zapto.org/jspacker/cmd/jspacker@latestOptionally, you can also install the zopfli compressor for improved compression.
The generated files should not be included in PRs to the develop branch to avoid rebase conflicts. There is a GitHub action that automatically builds and commits the frontend on a push.