Sync Module Documentation
This Sync module documentation is for version 1.0.
Sync Configuration
The following configuration parameters can be found in the modules/sync/config/sync.php configuration file. It is recommended that you copy the config file and place it in your fuel/application/config directory which will override the defaults and make it easier for future updates.
Property | Default Value | Description |
---|---|---|
remotes |
array() |
the name of the remote server |
change_threshold |
50 |
the number of detected changes that are allowed before an error is thrown saying "This Don't Look Right!" |
asset_folders |
array('images', 'pdf') |
the asset folders to be included in the sync |
include |
array('assets') |
what to include in sync. Options are "assets", "data", "both" |
asset_compare_methods |
array('date', 'size') |
what to include in sync. Options are "assets", "data", "both" |
exclude_assets |
'#\.html$|\.htaccess$|\.git|\.php|\.js#' |
methods to use to determine if the assets are different |
allow_deletes |
FALSE |
determines whether to delete local assets during sync process if they are not included in the remote list |
create_backup |
TRUE |
determines whether to create a backup of the assets and data before running the sync |
test_mode |
FALSE |
determines whether to run the syncing process in test mode which will not alter any assets or data and just provide you a log of what will happen |
new_folder_permissions |
0775 |
the folder permissions assigned to newly created folders during the sync |
db_sync_prefs |
array('tables' => array(), 'ignore' => array(), list of tables to omit from the backup 'add_drop' => TRUE, whether to add DROP TABLE statements to backup file 'add_insert' => TRUE, whether to add INSERT data to backup file ) |
database syncing preferences |