<commit_before># System Sync Toolkit  
This script is use to sync web content or directory and data such as Server folder and MySQL Database  

## File  
* www-sync (document root sync)
* db-sync (db sycn) - will be updated later  

## Requirement 
* ssh 
* rsync
* root acces (sudo)

## How to
### www-sync

1. sudo su
2. git clone https://gist.github.com/9420620.git ./sys-sync or copy script inside www-sync.sh file
3. If using git cd ./sys-sync
4. chmod +x ./www-sync.sh (same for copy script)
5. ./www-sync.sh
```
NOTE: Before running the script, make sure all the variable setting inside www-sync.sh 
meet with your requirement.
```

### db-sync

1. sudo su
2. git clone https://gist.github.com/9420620.git ./sys-sync or copy script inside www-sync.sh file
3. If using git cd ./sys-sync
4. Create config file
  1. /etc/mysql/db-sync.conf - server config for server where want to sync/download a data (source)
  2. /et/mysql/db-sync-local.conf - local server config (local)
5. chmod +x ./db-sync.sh (same for copy script)
6. ./db-sync.sh<commit_msg>Change from numbered list tu unordered list<commit_after># System Sync Toolkit  
This script is use to sync web content or directory and data such as Server folder and MySQL Database  

## File  
* www-sync (document root sync)
* db-sync (db sycn) - will be updated later  

## Requirement 
* ssh 
* rsync
* root acces (sudo)

## How to
### www-sync

1. sudo su
2. git clone https://gist.github.com/9420620.git ./sys-sync or copy script inside www-sync.sh file
3. If using git cd ./sys-sync
4. chmod +x ./www-sync.sh (same for copy script)
5. ./www-sync.sh
```
NOTE: Before running the script, make sure all the variable setting inside www-sync.sh 
meet with your requirement.
```

### db-sync

1. sudo su
2. git clone https://gist.github.com/9420620.git ./sys-sync or copy script inside www-sync.sh file
3. If using git cd ./sys-sync
4. Create config file
  * /etc/mysql/db-sync.conf - server config for server where want to sync/download a data (source)
  * /et/mysql/db-sync-local.conf - local server config (local)
5. chmod +x ./db-sync.sh (same for copy script)
6. ./db-sync.sh
{'fraction_non_alphanumeric': 0.11797752808988764, 'fraction_numerical': 0.024344569288389514, 'mean_word_length': 3.0860420650095604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 14, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '995934', 'n_tokens_mistral': 743, 'n_tokens_neox': 707, 'n_words': 293}