HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //var/packages/OAuthService/scripts/backup/export
. /usr/syno/bin/jsoncmd

BACKUP_CONF_DIR="/var/packages/OAuthService/target/etc"

exportPath=$(jget "${SYNOPKG_BKP_INPUT}" ".temp_path")
if [ $? -ne 0 ];then
        jerr "bad parameters"
        exit 1
fi

if [ -d "$BACKUP_CONF_DIR" ]; then
    /bin/cp -f $BACKUP_CONF_DIR/oauth.db $exportPath
fi

jout_begin
joutstr "app_data_version" "1.0"
jout_end

exit 0