mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-26 02:05:54 +00:00
rwMarkable: backup custom configs & themes when updating
This commit is contained in:
@@ -37,7 +37,7 @@ function update_script() {
|
|||||||
msg_info "Backing up configuration & data"
|
msg_info "Backing up configuration & data"
|
||||||
cd /opt/rwmarkable
|
cd /opt/rwmarkable
|
||||||
cp ./.env /opt/app.env
|
cp ./.env /opt/app.env
|
||||||
$STD tar -cf /opt/data.tar ./data
|
$STD tar -cf /opt/data_config.tar ./data ./config
|
||||||
msg_ok "Backed up configuration & data"
|
msg_ok "Backed up configuration & data"
|
||||||
|
|
||||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||||
@@ -54,7 +54,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Restoring configuration & data"
|
msg_info "Restoring configuration & data"
|
||||||
mv /opt/app.env /opt/rwmarkable/.env
|
mv /opt/app.env /opt/rwmarkable/.env
|
||||||
$STD tar -xf /opt/data.tar
|
$STD tar -xf /opt/data_config.tar
|
||||||
msg_ok "Restored configuration & data"
|
msg_ok "Restored configuration & data"
|
||||||
|
|
||||||
msg_info "Restarting ${APP} service"
|
msg_info "Restarting ${APP} service"
|
||||||
|
|||||||
Reference in New Issue
Block a user