Skip to content

A program that synchronizes two directories: source and replica;

License

Notifications You must be signed in to change notification settings

adysurfer/sync-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sync-directory

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:

Screenshot 2022-09-24 at 13 44 11

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>

About

A program that synchronizes two directories: source and replica;

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages