misc tool scripts

db access, artefact app download and deploy
This commit is contained in:
philippe lhardy
2025-07-31 11:10:59 +02:00
parent 89c3679be4
commit f9e38ea4a4
4 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
source lib/metascript.sh
rel_bind_folder=bind_folder
bind_folder=$(pwd)/$rel_bind_folder
timestamp=$(get_timestamp_second)
database_file=/data/owncloud.db
database_dest=nextcloud.${timestamp}.db
$defer sudo cp ${bind_folder}${database_file} ${database_dest}
$defer sudo chown $(id -u):$(id -g) ${database_dest}