Dateien hochladen nach „Pack/scripts/backup“
This commit is contained in:
parent
21c0661f67
commit
c0649ad4e6
18
Pack/scripts/backup/export
Normal file
18
Pack/scripts/backup/export
Normal 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
Pack/scripts/backup/import
Normal file
18
Pack/scripts/backup/import
Normal 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
Pack/scripts/backup/version
Normal file
1
Pack/scripts/backup/version
Normal file
|
@ -0,0 +1 @@
|
|||
1.0
|
Loading…
Reference in a new issue