Jottacloud Command-line Client supports ignoring file and folders by placing special ignore files in the folder structure you are backing up.
There are two methods to exclude files and folders:
- Global excludes
- Folder specific excludes
You can use
jotta-cli to load global exclude files that are applied to all folders. Simply create a file with the exclude pattern you want, and load it using the
ignores set command.
jotta-cli ignores set 'path/to/ignorefile'
To view the global exclude patterns on your system. Use the
ignores get command:
jotta-cli ignores get
This will print all the global exclude rules. Example from Mac OS X:
# ---- START OSX DEFAULTS ----
# The patterns listed in this file are the hardcoded
# and imutable ignore rules. These will always be respected
# by the client regardless of any other specified rules
### OSX ###
# Files that might appear in the root of a volume
# Directories potentially created on remote AFP share
Network Trash Folder
# ---- END DEFAULTS ----
Folder specific excludes
You can add folder specific exclude files to individual folders you back up. Simply add a special file in the folder of your choice. This file is called
.jottaignore file specifies intentionally untracked files that Jottacloud CLI should ignore.
.jottaignore is similar to
A key difference between
.gitignore is that changes made to
.jottaignore files will affect already backed up files and folders. That means if you add an exclude pattern to exclude an already backed up file or folder, the file or folder will be deleted from your backup on Jottacloud.
Each line in a
.jottaignore file specifies a pattern.
.jottaignore files are only supported by the Jottacloud Command-line Client. The Jottacloud Desktop Client do not support
The pattern format of
.jottaignore is the same as
.gitignore . Please see documentation for .gitignore.
### WordPress ###
Gitignore.io is a useful tool for creating .gitignore files. This tool can also be used to create