all repos — honk @ e43284c6fe8530e327a25ac87cdf3ea844fdbfe3

my fork of honk

add a backup command
Ted Unangst tedu@tedunangst.com
Wed, 02 Sep 2020 17:47:18 -0400
commit

e43284c6fe8530e327a25ac87cdf3ea844fdbfe3

parent

34a510a500ca03130f56afa54556e2b5eebf0a9c

3 files changed, 13 insertions(+), 4 deletions(-)

jump to
M docs/changelog.txtdocs/changelog.txt

@@ -2,6 +2,8 @@ changelog

=== next +++ backup command. + + Option to mention all in replies. + Reduce interference between various text substitution rules.
M docs/honk.8docs/honk.8

@@ -124,6 +124,10 @@ .Ic cleanup Op Ar days

command exists to purge old data, by default 30 days. This removes unreferenced, unsaved posts and attachments. It does not remove any original content. +.Pp +Backups may be performed by running +.Ic backup dirname . +Backups only include the minimal necessary information. .Ss Upgrade Stop the old honk process. Backup the database.

@@ -131,10 +135,6 @@ Perform the upgrade with the

.Ic upgrade command. Restart. -.Pp -There's also a -.Pa blob.db -file which is important to backup and restore. .Pp The current version of the honk binary may be printed with the .Ic version
M honk.gohonk.go

@@ -326,6 +326,13 @@ return

} name := args[1] unplugserver(name) + case "backup": + if len(args) < 2 { + fmt.Printf("usage: honk backup dirname\n") + return + } + name := args[1] + svalbard(name) case "ping": if len(args) < 3 { fmt.Printf("usage: honk ping from to\n")