Add backup/restore

This commit is contained in:
3wc 2021-08-13 00:30:43 +02:00
parent f6e7eaa6f7
commit 0d6fea078c

20
abra.sh
View File

@ -1,3 +1,23 @@
export INSTALL_SH_VERSION=v7
export CONFIG_JSON_VERSION=v6
export CONFIG_OWNER_JSON_VERSION=v3
abra_backup_app() {
_abra_backup_dir "app:/home/node/.wiki"
}
abra_restore_app() {
# shellcheck disable=SC2034
{
abra__src_="-"
abra__dst_="app:/home/node/.wiki"
}
zcat "$@" | sub_app_cp
success "Restored 'app'"
}
abra_backup() {
abra_backup_app
}