Cleans up orphan resources.
Go to file
Helmut K. C. Tessarek 30b2d3dc05
initial commit
2019-07-02 14:27:38 -04:00
.editorconfig initial commit 2019-07-02 14:27:38 -04:00
.jnclnst.conf.template initial commit 2019-07-02 14:27:38 -04:00
.jnrmor.conf.template initial commit 2019-07-02 14:27:38 -04:00
README.md initial commit 2019-07-02 14:27:38 -04:00
jnclnst initial commit 2019-07-02 14:27:38 -04:00
jnrmor initial commit 2019-07-02 14:27:38 -04:00

Use at your own risk!

Why are there 2 scripts to remove resources?

The first script jnrmor removes orphaned resources from the database and the meta data files for those resources from the sync target. Due to an error in the Joplin API, the actual resources are not deleted on the sync target. There's where script jnclnst comes to the rescue.

jnrmor - remove orphaned resources in Joplin

usage: jnrmor [-c CONFIGFILE] [-f] [-q|--quiet] [-n|--dry-run] [-d|--debug] [-V|--version] [-h] [--help]

       -c CONFIGFILE
           use CONFIGFILE, instead of searching the default locations
           The first file found is used.

       -f
           run without confirmation

       -q, --quiet
           do not print informational messages
           (errors will be shown)

       -n, --dry-run
           only show orphaned resources (do not actually delete them)
           implies -f

       -d, --debug
           print debug information

       -V, --version
           version information

       -h
           usage information

       --help
           this help

jnclnst - clean sync target (remove orphaned resources from sync target)

usage: jnclnst [-c CONFIGFILE] [-f] [-q|--quiet] [-n|--dry-run] [-d|--debug] [-V|--version] [-h] [--help]

       -c CONFIGFILE
           use CONFIGFILE, instead of searching the default locations
           The first file found is used.

       -f
           run without confirmation

       -q, --quiet
           do not print informational messages
           (errors will be shown)

       -n, --dry-run
           only show orphaned resources (do not actually delete them)
           implies -f

       -d, --debug
           print debug information

       -V, --version
           version information

       -h
           usage information

       --help
           this help