nncli-export(1)

Synopsis

nncli export [options] [search_string]

Description

nncli export exports notes in raw, JSON format. The JSON format is a superset of the format outlined in the NextCloud Notes API specification with information added for managing the local notes cache. If search_string is specified, it is used to filter the notes prior to export.

Note

nncli already stores all notes locally in the cache directory, so for easy backups, it may be easier/quicker to simply backup this entire directory.

Options

--regex, -r

Treat search_string as a regular expression. Mutually exclusive with –key.

--key, -k

The ID of the note to operate on.

Examples

# export a single note by id
$ nncli -k somekeyid export

# export all notes
$ nncli export

# export notes matching search string
$ nncli [-r] export "some search keywords or regex"

See also

nncli(1)