Skip to content

Commit

Permalink
Merge pull request #32 from Start9Labs/feat/new-backup
Browse files Browse the repository at this point in the history
chore: Use the latest backup.
  • Loading branch information
Blu-J authored Jan 19, 2023
2 parents b926b27 + e5a03dc commit 009c16d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 51 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ vaultwarden.s9pk
scripts/*.js
scripts/generated/manifest.ts
.vscode/
docker-images
docker-images
vaultwarden/
55 changes: 9 additions & 46 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"id": "vaultwarden",
"title": "Vaultwarden",
"version": "1.27.0",
"release-notes": "* Update upstream to v1.27.0, official release notes: https://github.com/dani-garcia/vaultwarden/releases/tag/1.27.0 \n * Fix a bug with client connections",
"version": "1.27.0.1",
"release-notes": "* Use new eOS APIs for backups",
"license": "GPL-3.0",
"wrapper-repo": "https://github.com/Start9Labs/vaultwarden-wrapper",
"upstream-repo": "https://github.com/dani-garcia/vaultwarden",
"support-site": "https://vaultwarden.discourse.group/",
"marketing-site": "https://github.com/dani-garcia/vaultwarden/",
"donation-url": "https://www.paypal.com/paypalme/DaniGG",
"build": [
"make"
],
"build": ["make"],
"description": {
"short": "Secure password management",
"long": "Vaultwarden is a lightweight and secure password manager for storing and auto-filling sensitive information such as usernames and passwords, credit cards, identities, and notes. It is an alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients. All data is stored in an encrypted vault on your Embassy.\n"
Expand Down Expand Up @@ -77,64 +75,29 @@
}
},
"ui": true,
"protocols": [
"tcp",
"http"
]
"protocols": ["tcp", "http"]
}
},
"backup": {
"create": {
"type": "docker",
"image": "compat",
"system": true,
"entrypoint": "compat",
"args": [
"duplicity",
"create",
"/mnt/backup",
"/data"
],
"mounts": {
"BACKUP": "/mnt/backup",
"main": "/data"
},
"io-format": "yaml"
"type": "script"
},
"restore": {
"type": "docker",
"image": "compat",
"system": true,
"entrypoint": "compat",
"args": [
"duplicity",
"restore",
"/mnt/backup",
"/data"
],
"mounts": {
"BACKUP": "/mnt/backup",
"main": "/data"
},
"io-format": "yaml"
"type": "script"
}
},
"migrations": {
"from": {
"*": {
"type": "script",
"args": [
"from"
]
"args": ["from"]
}
},
"to": {
"*": {
"type": "script",
"args": [
"to"
]
"args": ["to"]
}
}
}
}
}
4 changes: 2 additions & 2 deletions scripts/deps.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "https://deno.land/x/[email protected].4/mod.ts";
export * from "https://deno.land/x/[email protected].4/healthUtil.ts";
export * from "https://deno.land/x/[email protected].7/mod.ts";
export * from "https://deno.land/x/[email protected].7/healthUtil.ts";
4 changes: 2 additions & 2 deletions scripts/embassy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export { setConfig } from "./procedures/setConfig.ts";
export { getConfig } from "./procedures/getConfig.ts";
export { health } from "./procedures/health.ts";
export { properties } from "./procedures/properties.ts";

export { migration } from "./procedures/migrations.ts";
export { createBackup, restoreBackup } from "./procedures/backups.ts";
export { migration } from "./procedures/migrations.ts";
3 changes: 3 additions & 0 deletions scripts/procedures/backups.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Backups } from "../deps.ts";

export const { createBackup, restoreBackup } = Backups.volumes("main").build();
1 change: 1 addition & 0 deletions scripts/procedures/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { manifest } from "../generated/manifest.ts";
export const migration: T.ExpectedExports.migration = migrations.fromMapping(
{
// 1.22.2 No migration needed
// 1.30.0 No migration needed
},
manifest.version,
);

0 comments on commit 009c16d

Please sign in to comment.