. /usr/syno/bin/jsoncmd

BACKUP_CONF_DIR="/usr/local/synoradius"

importPath=$(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 $importPath/* $BACKUP_CONF_DIR
fi

exit 0
