backdown tag
Tags: facts about content — person, place, kind, event, date. Create them and attach them to content, people or places.
On this page
backdown tag [OPTIONS] <COMMAND>backdown tag add
Create a tag (or find the matching one), and optionally attach it to a target.
backdown tag add [OPTIONS] --kind <KIND> --value <VALUE>Options
--kind <KIND>- What it is about: owner, kind, location, country, city, place, airport, event, date, memory.
--value <VALUE>- Its value, e.g. "Hong Kong" or "HKG".
--parent <PARENT>- A parent tag id, for a hierarchy (a city under its country).
--data <DATA>- Extra data as JSON (coordinates, codes).
--to <TARGET>- Attach it to this target: content:<sha256hex>, subject:<key>, entity:<key> or path:<key>.
--source <SOURCE>- Where the tag came from. Default:
user. --confidence <CONFIDENCE>- How sure, 0..1. Default:
1.
backdown tag rm
Remove a tag from a target.
backdown tag rm [OPTIONS] --tag <TAG> --from <TARGET>Options
--tag <TAG>- The tag id (
backdown tag list). --from <TARGET>- The target to remove it from.
backdown tag list
List tags, optionally of one kind.
backdown tag list [OPTIONS]Options
--kind <KIND>-
--json- Print it as JSON, for scripts.
backdown tag of
Show the tags a target carries.
backdown tag of [OPTIONS] <TARGET>Arguments
<TARGET>- content:<sha256hex>, subject:<key>, entity:<key> or path:<key>.
Options
--json- Print it as JSON, for scripts.
backdown tag exif
Read a photo or video's own metadata (EXIF / QuickTime) and attach date and location tags.
backdown tag exif [OPTIONS] <PATHS>...Arguments
<PATHS>...- The files to read, or folders: every indexed photo and video under them (each must be indexed; one
backdown hashhasn't read is hashed now).
Options
--geo- Also tag the country, region, city and nearest airport of each position, as
tag geodoes. --again- In folders, read again what was read before (named files always are).
--source <SOURCE>- Where the derived tags are recorded as coming from. Default:
exif.
backdown tag find
Find content by where it was taken and what it's tagged with: everything within a distance of a place, carrying tags, taken between dates.
backdown tag find [OPTIONS]Options
--near <PLACE>- Around a place: an airport's code (HKG), a town or city (Paris, or "Paris, Texas"), or a position (22.3089,113.9146).
--km <KM>- How far from it, in km. Default:
120. --tag <KIND=VALUE>- A tag it must carry: KIND=VALUE (airport=HKG, country=Hong Kong, event=Boat show 2019) or a tag id from
tag list. Repeat it for more; all must be there. --from <DATE>- Taken on or after: YYYY, YYYY-MM or YYYY-MM-DD.
--to <DATE>- Taken on or before: YYYY, YYYY-MM or YYYY-MM-DD.
--sort <SORT>- nearest (the default around a place), newest (otherwise) or oldest.
--limit <LIMIT>- Show at most this many (0: all of them). Default:
0. --paths- Print only the path of every copy, one per line, for scripts (
| xargs …). --json- Print it as JSON, for scripts.
backdown tag geo
Derive country, region, city and nearest-airport tags from the location tags already on content (attach those first with tag exif). Offline, from embedded reference data.
backdown tag geo [OPTIONS] [TARGETS]...Arguments
[TARGETS]...- Limit to these content items (content:<sha256hex>); with none, every located item.
Options
--source <SOURCE>- Where the derived tags are recorded as coming from. Default:
geo. --about- Print the embedded dataset sizes and data attribution, then exit.
All of them also take the global options --db and --local.
Examples
# read the dates and positions of every indexed photo and video under a folder, and name their places
backdown tag exif ~/Pictures --geo
# everything within 120 km of Hong Kong's airport, nearest first
backdown tag find --near HKG
# a town (the most populous of that name, or say which), closer in, in one year
backdown tag find --near "Paris, France" --km 20 --from 2019 --to 2019
# by tags: all of them must be there
backdown tag find --tag country="Hong Kong" --tag event="Boat show 2019"
# just the paths, for other tools
backdown tag find --near 22.3089,113.9146 --km 5 --paths | xargs -d '\n' ls -l
backdown tag add --kind event --value "Boat show 2019" --to content:<sha256>See also
Last updated · What's released, and what's next