Giter Site home page Giter Site logo

drives_bash_sync's Introduction

drives-bash-sync

A simple Bash program to sync two drives, selecting and excluding certain folders

It can run on Windows or Linux

It uses Ubuntu and rsync from the back

Startup Guide

Prerequisite: Must have Docker installed

  1. Run the docker pull jasonmccb/drives_bash_sync:latest to get it from Docker Hub
  2. Run the git clone https://github.com/jasonmccb/drives_bash_sync.git to get the source from Git Hub
    -or-
    Download the source codes from https://github.com/jasonmccb/drives_bash_sync/archive/master.zip
  3. Go the folder with the docker-compose.yml file
  4. Run the docker-compose up -d to start the container
  5. Run the docker-compose exec app sh to get into the Bash
  6. Run the vi drivesBashSync.sh to edit the file and specify the drive names (D: and E: by default) and folders you want to sync
  7. Edit dryRun=1 for rehearsal, and dryRun=0 for real actions
  8. Run ./drivesBashSync.sh to start the sync

Program Details

  • One day one log. Please feel free to check the log.
  • It's not auto. It will ask you Y/N to continue if a new folder is found, just for safety consideration.
  • Pay attention to exclude patterns

drives_bash_sync's People

Contributors

jasonmccb avatar

Watchers

 avatar

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.