A program that synchronizes two directories: source and replica;
#############################################
Program: sync-directory
Created on: 21st Sep 2022
Last Modified on Python 3.x.x: 24th Sep 2022
Last Updated By: Aditya
##############################################
Features:
- Periodically one-way synchronization, identical copy of source directory is maintained in replica directory;
- File creation/copying/removal operations are logged to a file and to the console output;
- Directory path, synchronization interval and log file path are provided using the command line arguments;
Log File Preview:
Project Structure:
Main Application:
- sync_dir.py
Others:
- README.md
Modules:
- hashlib
- os
- shutil
- sys
- time
- logging
Steps for execution:
git clone https://github.com/adysurfer/sync-directory.git
- Run using
python3 sync_dir.py <path-to-log-file> <synchronization interval in seconds>