GithubHelp home page GithubHelp logo

synchronize-directories-cpp's Introduction

Synchronization tool

The "Synchronization Tool" is a C++ based utility that facilitates one-way synchronization between two directories: the Source directory and the Replica directory. This tool ensures that the contents of the Replica directory remain fully identical to the Source directory.

Usage

  1. Clone this repository:

     git clone https://github.com/puklu/Synchronize-directories-cpp.git
    
  2. Navigate to the project folder:

    After cloning the repository, navigate to the location where the project is cloned.

  3. To run the tool,

      ./bin/main -srcdir <path/to/source-dir> -repdir <path/to/replica-dir> -interval <sync_interval>
    

    Rum the tool with appropriate command-line arguments to initiate synchronization.

    The tool accepts the following parameters:

    Mandatory

    1. -srcdir: Path to the Source directory.

    Optional but recommended

    1. -repdir: Path to the Replica directory.

      Default location is the root of this project if not provided by the user.

    2. -interval: Interval (in seconds) at which synchronization should be performed.

      Default value is 10 seconds if not provided by the user.

    Example 1 (with all the parameters):

      ./bin/main -srcdir <path/to/source-dir> -repdir <path/to/replica-dir> -interval <sync_interval>
    

    Example 2 (with only the mandatory parameter):

      ./bin/main -srcdir <path/to/source-dir>
    

synchronize-directories-cpp's People

Contributors

puklu avatar

Watchers

 avatar

synchronize-directories-cpp's Issues

md5 doesn't get updated when contents of a file is changed.

Steps to recreate:

  1. Create a file in source directory with some contents.
  2. Run the program. The file in source directory should get copied to replica directory.
  3. Change the contents of the file.
  4. The copied file in replica directory doesn't get updated with the new contents of the file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.