-
Notifications
You must be signed in to change notification settings - Fork 1
syncdata.json
hertsch edited this page Sep 5, 2013
·
4 revisions
The .htaccess protected SyncData2 configuration file /syncdata/configuration/syncdata.json will be generated with default settings at the installation process.
You can fit the behaviour of SyncData2 to your needs, just edit the JSON file with any Editor (see sample of syncdata.json below).
The configuration file contains different sections:
-
CMS- settings of the parent Content Management System -
email- this is general switch, if you don't want that SyncData2 is sending emails set"active":false, use this setting if a SyncData client is installed local and can not send emails -
monolog- is the logger used by SyncData2. You find the.htaccessprotected protocol in/syncdata/logfile/syncdata.log. If any error occurs, SyncData will also send an email (if enabled) to the specified address."level":400will send messages at any error,"level":100will send you also debug information (many reports!) -
general- general settings of SyncData2. Theclient_idis a unique identifier for each SyncData installation. Increase thememory_limitand/orexecution_timeif SyncData2 is running out of memory or execution time. -
security- should be always active. Thekeyprotect SyncData2 from abuse, at the most commands you must also specify thekeyas parameter, i.e.http://domain.tld/syncdata/update?key=abc123de45
The keys below the sections backup and restore are identical:
-
settings- general settings,replace_table_prefix,add_if_not_existsandreplace_cms_urlshould be normally alwaystrue -
files- you can specify as many filenames you want, which must be always ignored. This setting hits each directory! -
directories- you can specify top level directories which should be ignored and you can specify subdirectories (hits each directory). -
tables- you can specify tables which must be always ignored. Important: specify the table names without the table prefix!
Sample syncdata.json:
{
"CMS": {
"CMS_SERVER_EMAIL": "webmaster@yourdomain.tld",
"CMS_SERVER_NAME": "SyncData Server",
"CMS_TYPE": "WebsiteBaker",
"CMS_VERSION": "2.8.3",
"CMS_MEDIA_DIRECTORY": "\/media",
"CMS_PAGES_DIRECTORY": "\/pages",
"CMS_URL": "http:\/\/yourdomain.tld",
"CMS_PATH": "\/var\/www\/vhosts\/yourdomain.tld\/httpdocs",
"INSTALLATION_NAME": ""
},
"email": {
"active": true
},
"monolog": {
"email": {
"active": true,
"level": 400,
"to": "webmaster@yourdomain.tld",
"subject": "SyncData Alert"
}
},
"general": {
"client_id": "ummspw5f7",
"memory_limit": "512M",
"max_execution_time": "300",
"time_zone": "Europe\/Berlin"
},
"security": {
"active": true,
"key": "f8hQ2AKRF"
},
"backup": {
"settings": {
"replace_table_prefix": true,
"add_if_not_exists": true,
"replace_cms_url": true
},
"files": {
"ignore": [
".buildpath",
".project",
"desktop.ini"
]
},
"directories": {
"ignore": {
"directory": [
"temp",
"syncdata",
"kit2",
"nbproject"
],
"subdirectory": [
".git"
]
}
},
"tables": {
"ignore": {
"table": [
],
"sub_prefix": [
"kit2_",
"syncdata_",
"mod_kit_"
]
}
}
},
"restore": {
"settings": {
"replace_table_prefix": true,
"replace_cms_url": true,
"ignore_cms_config": true
},
"files": {
"ignore": [
".buildpath",
".project",
"desktop.ini"
]
},
"directories": {
"ignore": {
"directory": [
"temp",
"syncdata",
"kit2",
"nbproject"
],
"subdirectory": [
".git"
]
}
},
"tables": {
"ignore": {
"table": [
],
"sub_prefix": [
"kit2_",
"syncdata_"
]
}
}
}
}
Next step: INSTALLATION_NAME
- If you spot a typo or want to contribute an article, a how-to or a tip, please feel free to edit the Wiki directly
- If you you have any question or suggestion, please contact the phpManufaktur Support Group
© 2011, 2013 by phpManufaktur, SyncData is published under MIT license.