Skip to content

wtsi-hgi/backup-plans

Repository files navigation

Backup Plans

Backup Plans allows users to supply backup plans for their data.

Uses WRStat for directory data and IBackup for performing the actual backups.

Development

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:

terser:

npm i -g terser

jspacker:

go install vimagination.zapto.org/jspacker/cmd/jspacker@latest

Optionally, 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5