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/ProxyServer/scripts/backup/can_import
. /usr/syno/bin/jsoncmd
bkpDataVersion=$(jget "${SYNOPKG_BKP_INPUT}" ".app_data_version")
if [ $? -ne 0 ];then
        jerr "bad data version"
        exit 1
fi

$(jversion_compare ${bkpDataVersion} 1.0)
if [ $? -eq 1 ];then
        jerr "version of backup data is newer than we can handle."
        exit 1
fi