| Total Complexity | 0 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from file_sync_tool import sync |
||
| 2 | |||
| 3 | if __name__ == "__main__": |
||
| 4 | sync.Sync( |
||
| 5 | mute=True, |
||
| 6 | config={ |
||
| 7 | "target": { |
||
| 8 | }, |
||
| 9 | "origin": { |
||
| 10 | "host": "www1", |
||
| 11 | "user": "user", |
||
| 12 | "password": "password" |
||
| 13 | }, |
||
| 14 | "files": { |
||
| 15 | "config": [ |
||
| 16 | { |
||
| 17 | "origin": "/var/www/html/tests/files/www1/dir1/", |
||
| 18 | "target": "/var/www/html/tests/files/www2/dir1/", |
||
| 19 | "exclude": [ |
||
| 20 | "dummy2.file" |
||
| 21 | ] |
||
| 22 | }, |
||
| 23 | { |
||
| 24 | "origin": "/var/www/html/tests/files/www1/dir2/", |
||
| 25 | "target": "/var/www/html/tests/files/www2/dir2/", |
||
| 26 | "exclude": [ |
||
| 27 | "dummy2.file" |
||
| 28 | ] |
||
| 33 |