{{define "content"}}{{template "settings-start" .}}{{with .Data}}{{$d := .}}
Copies of Supermarket's database: your profile, inventory, signals, prospects, drafts, SEO and metrics. Each one is a single SQLite file. Your keys and tokens aren't in them; they stay in secrets.json.
Restored from {{.From}} {{ago .At}}{{if .Secrets}}, keys and tokens included{{end}}. What was there before is backed up as {{.Backup}}.
{{end}} {{if .Pending}}A restore is waiting for Supermarket to restart. {{if not .CanRestart}}It's applied the next time Supermarket starts (supermarket restart).{{end}}
Supermarket backs up by itself once a day, and before every update that changes the database. The last 7 daily backups are kept, plus one a week for 4 weeks. The ones made before an update, before a restore, and the ones you make are kept until you delete them.
They're kept in {{.Dir}}, on this computer. From a terminal: supermarket backup [note] and supermarket backups.
{{len .Backups}} backup{{if ne (len .Backups) 1}}s{{end}}, {{bytes .Total}} in all. This version of Supermarket is at schema {{.Schema}}.
| Made | Why | Size | Schema | |
|---|---|---|---|---|
| {{.At.Format "2 Jan 2006, 15:04"}} {{ago .At}} |
{{if eq .Kind "manual"}}By you{{else if eq .Kind "migration"}}Before an update{{else if eq .Kind "daily"}}Daily{{if not (index $d.Keep .Name)}} (next to go){{end}}{{else if eq .Kind "restore"}}Before a restore{{else}}An older copy{{end}}{{with .Note}} {{.}}{{end}} |
{{bytes .Size}} | {{if ge .Schema 0}}{{.Schema}}{{else}}unreadable{{end}} |
{{if ge .Schema 0}}{{if le .Schema $d.Schema}}{{end}}{{end}}
Download
|
No backups yet. The first daily one is made when Supermarket starts.
A backup downloaded from here, on this computer or another. It's checked and added to the list; then restore it from there. For a backup made with supermarket backup --with-secrets (keys and tokens included), use supermarket restore <file> in a terminal.