Code Monkey home page Code Monkey logo

dropboxignore's Introduction

dropboxignore

dropboxignore-logo

It's all about the missing .dropboxignore file.

Documentation Status dropboxignore

Exclude files from your dropbox using glob patterns and take advantage of existing .gitignore files.

This is a simple shell script that can be used to ignore files from dropbox using glob patterns, .dropboxignore files and the already existing .gitignorefiles. The shell script uses this approach to ignore the matched files.

Features

  • Ignore folders or files based on glob patterns inside the .dropboxignore file.
  • Automatically generate .dropboxignore files based on existing .gitignore files.
  • Ignore specific folders or files via CLI.
  • Revert ignored folders or files
  • Delete .dropboxignore files
  • Update .dropboxignore files when changes are detected in corresponding .gitignore files.
  • List ignored files and folders

Getting Started

Basic Installation

dropboxignore is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl, wget or another similar tool. attr and git package should be installed on your system.

Mathod Command
curl sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/sp1thas/dropboxignore/master/utils/install.sh)"
wget sudo sh -c "$(wget -qO- https://raw.githubusercontent.com/sp1thas/dropboxignore/master/utils/install.sh)"
fetch sudo sh -c "$(fetch -o - https://raw.githubusercontent.com/sp1thas/dropboxignore/master/utils/install.sh)"

Snap Installation

Get it from the Snap Store

$ snap install dropboxignore

Manual Installation

$ git clone https://github.com/sp1thas/dropboxignore.git
$ cd dropboxignore
$ make test  # optional step, bats should be in your PATH
$ sudo make install

Uninstall

$ sudo make uninstall

Usage

In order to use this script you have to select the action and the file or folder that the action will take place.

A common workflow could be the following

  1. Automatically generate .dropboxignore files based on existing .gitignore files (dropboxignore generate path).
  2. Manually update or create .dropboxignore files (Optional)
  3. Ignore matched files based on .dropboxignore files (dropboxignore ignore path)

TL;DR

Case Solution
node_modules_meme $ dropboxignore ignore ./node_modules
python_venv $ dropboxignore ignore ./venv

Notes

  1. In order to prevent unpleasant data losses, exception patterns are not supported. Both .gitignore and .dropboxignore files with at least one exceptional pattern will be bypassed (for further details: #3).
  2. Automatic generation of .dropboxignore files is an optional step, therefore, may not be a necessary action for your case.

Demo

asciicast

For futher details check out the documentation

How to contribute

If you want to contribute, read docs/contributing.md guide for further details.


*Logo is based on papirus-icon-theme

dropboxignore's People

Contributors

sp1thas avatar drallas avatar dk-github-acc 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.