Code Monkey home page Code Monkey logo

fsync-rs's Introduction

fsync-rs

Basic File Syncing Tool with custom source directory and auto generated output directory from a base. (Format Day-Month-Year)

Copies files that arent in output directory or got changed and deletes files that were deleted.

Preview

img

Build

First of all you will need to have cargo installed on your system. Rustc standalone wont be enough. If you have cargo installed clone this repository and build it.

git clone https://github.com/EKQRCalamity/fsync-rs
cd fsync-rs
cargo build --release

Or run it directly

cargo run

Usage

When you are in the directory of the file (I have it in my bin folder so no need for that) you can simply run

fsync

After that you will be prompted for the config. You currently cant specify a specific config and should create one from the directory you executed it from. If you need to reenter the config setup use the -c parameter.

Arguments

Argument Parameters Example Function
-c / --config None Enter Config Setup
-h / --help None Show help message
-fin / --format Date Format String %d-%m-%Y Set Source Directory Date Format
-fout / --format_out Date Format String %d-$m-$h-$s Set Output Directory Date Format
-df / --dformat None Set my default Date Formats
-t / --timestamp Time Format (Optional) %H:%M:%S Enable timestamp and set format
-q / --quiet None Disable most console outputs

*** Note -t should only be used as last parameter if you don't give it an format parameter.

fsync-rs's People

Contributors

ekqrcalamity 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.