• Stars
    star
    322
  • Rank 130,398 (Top 3 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ•” Exclude development files from Time Machine backups

tmignore

Time Machine on macOS is a highly useful tool for creating backups of all your files. Unfortunately for developers, it also backs up your coding project's dependencies, build output and other undesired files, which slows down the backup process and takes up storage.

tmignore excludes files and directories matched by .gitignore files from future Time Machine backups.

Install

macOS 10.13+ is required to run tmignore.

  1. Build and install the script using Homebrew (Xcode is required):

    brew install samuelmeuli/tap/tmignore
  2. If you want to run the script once:

    tmignore run

    To schedule the script to run once a day:

    brew services start tmignore

Alternatively, if you don't want to build the binary yourself, you can download the compiled program on the Releases page.

Commands

  • run: Searches the disk for files/directories ignored by Git and excludes them from future Time Machine backups
  • list: Lists all files/directories that have been excluded by tmignore
  • reset: Removes all backup exclusions that were made using tmignore

Configuration

You can configure the behavior of tmignore by creating a configuration file at ~/.config/tmignore/config.json:

  • "searchPaths": Directories which should be scanned for Git repositories. Default: ["~"] (home directory)

  • "ignoredPaths": Directories which should be excluded from the Git repository search. Default: ["~/.Trash", "~/Applications", "~/Downloads", "~/Library", "~/Music/iTunes", "~/Music/Music", "~/Pictures/Photos\\ Library.photoslibrary"]

  • "whitelist": Files/directories which should be included in backups, even if they are matched by a .gitignore file. Useful e.g. for configuration or password files. Default: []

Configuration example:

{
	"searchPaths": ["~", "/path/to/another/drive"],
	"whitelist": ["*/application.yml", "*/config.json", "*/.env.*"]
}

Contributing

Suggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request.

More Repositories

1

mini-diary

๐Ÿ“˜ Simple and secure journal app
TypeScript
1,031
star
2

glance

๐Ÿ”Ž All-in-one Quick Look plugin
Swift
953
star
3

action-electron-builder

:electron: GitHub Action for building and releasing Electron apps
JavaScript
651
star
4

font-picker

โœ๏ธ Font selector component for Google Fonts
TypeScript
171
star
5

font-picker-react

โœ๏ธ Font selector component for Google Fonts
TypeScript
152
star
6

react-magnifier

๐Ÿ” React image zoom component
TypeScript
151
star
7

action-maven-publish

๐Ÿ“ฆ GitHub Action for automatically publishing Maven packages
JavaScript
101
star
8

lyrics-poster

๐ŸŽค Create posters of your favorite artists, written in their lyrics
JavaScript
63
star
9

refind-theme-dark

๐ŸŽจ A simple, dark theme for rEFInd
54
star
10

action-snapcraft

๐Ÿฆ GitHub Action for setting up Snapcraft
JavaScript
49
star
11

font-manager

๐Ÿ—‚ Manages, downloads and applies Google Fonts for picker components
TypeScript
27
star
12

swift-exec

๐Ÿš€ Simple process execution with Swift
Swift
16
star
13

draft-js-list-plugin

๐Ÿ“ Better lists for Draft.js
TypeScript
14
star
14

python-wikibase

๐Ÿค– Wikibase queries and edits made easy
Python
11
star
15

nbtohtml

๐Ÿ“ˆ Convert Jupyter Notebook files to HTML
Go
9
star
16

github-downloads

โฌ‡๏ธ See the number of downloads next to releases on GitHub
JavaScript
8
star
17

alfred-system-theme

๐ŸŽจ Alfred themes in style of Apple's macOS apps
7
star
18

react-library-boilerplate

๐Ÿ”จ Create a React component library with no configuration
JavaScript
6
star
19

iconsets.org

๐ŸŒŸ Icon set discovery website for designers
JavaScript
5
star
20

wikibase-api

๐Ÿ“ฆ Wrapper library for the Wikibase API
Python
4
star
21

anonymize-ip

๐Ÿ‘ค Python library for anonymizing IP addresses
Python
4
star
22

strava-bulk-edit

๐Ÿƒ Edit multiple Strava activities at once
Go
2
star
23

electron-md-to-pdf

:electron: Convert Markdown to PDF in Electron apps
CSS
2
star
24

hugo-starter-theme

๐Ÿ”จ Boilerplate for building a custom Hugo theme
HTML
2
star
25

samuelmeuli.com

๐Ÿ‘จโ€๐Ÿ’ป My personal website
CSS
1
star
26

music-notifications

๐ŸŽต Notification service for new releases on iTunes
JavaScript
1
star
27

prettier-config

โ˜‘๏ธ My Prettier configuration
JavaScript
1
star
28

react-app-boilerplate

๐Ÿ”จ Create a React application with no configuration
JavaScript
1
star