Browse Source

Dateien hochladen nach „Pack/scripts/backup“

4.1.0
Stephan Geisler 2 years ago
parent
commit
c0649ad4e6
3 changed files with 37 additions and 0 deletions
  1. +18
    -0
      Pack/scripts/backup/export
  2. +18
    -0
      Pack/scripts/backup/import
  3. +1
    -0
      Pack/scripts/backup/version

+ 18
- 0
Pack/scripts/backup/export 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

+ 18
- 0
Pack/scripts/backup/import 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

+ 1
- 0
Pack/scripts/backup/version View File

@ -0,0 +1 @@
1.0

Loading…
Cancel
Save