Dateien hochladen nach „Pack/scripts/backup“

This commit is contained in:
Stephan 2018-10-24 08:41:33 +00:00
parent 21c0661f67
commit c0649ad4e6
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,18 @@
. /usr/syno/bin/jsoncmd
DDUCONF="/usr/syno/synoman/webman/3rdparty/synOTR/app/etc"
EXPPATH=$(jget "${SYNOPKG_BKP_INPUT}" ".temp_path")
if [ $? -ne 0 ]; then
jerr "Failed to get export path"
exit 1
fi
if [ -d "${DDUCONF}" ]; then
/bin/cp -rf ${DDUCONF}/* ${EXPPATH}
fi
jout_begin
joutstr "app_data_version" "1.0"
jout_end
exit 0

View file

@ -0,0 +1,18 @@
. /usr/syno/bin/jsoncmd
DDUCONF="/usr/syno/synoman/webman/3rdparty/synOTR/app/etc"
IMPPATH=$(jget "${SYNOPKG_BKP_INPUT}" ".temp_path")
if [ $? -ne 0 ]; then
jerr "Failed to get import path"
exit 1
fi
if [ -d "${IMPPATH}" ]; then
/bin/cp -rf ${IMPPATH}/* ${DDUCONF}
fi
jout_begin
joutstr "app_data_version" "1.0"
jout_end
exit 0

View file

@ -0,0 +1 @@
1.0