Program that enables one-way periodical synchronization of two directories, source and replica.
For correct program operation positional arguments needs to be set as follows:
source-> absolute path to the source directory to be synchonized")destination-> absolute path to the destination directory of synchonization")interval-> synchonization interval in secondslogs-> absolute path to the logs destination (log file is namedsynchronization.log)
As for the paths to the operation directories, absolute path depends on your filesystem structure.
./sync_dirs.py <src_dir> <replica> 5 <logs_dir>