Skip to content

Feature Request: Access file version history via CLI (versions / download --revision) #218

Description

@hl9020

Problem

Jottacloud stores up to 5 previous versions of every file — a great feature. However, accessing these versions currently requires logging into the web interface with 2FA every time. For users relying on jotta-cli for headless/server backup workflows, this completely breaks the experience.

There is no CLI command to:

  • List previous versions of a file
  • Download a specific older version

Proposed Solution

Two new commands (or flags) would solve this:

jotta-cli versions <remote/path/to/file>

Lists all available revisions with: revision number, date, size, and checksum.

jotta-cli download --revision=N <remote/path/to/file> <local-destination>

Downloads a specific revision instead of only the current one.

Use Case

I run jotta-cli on a Windows server for automated backups. When I need to restore a previous version of a config file or database dump, I have to:

  1. Open browser
  2. Log in with 2FA
  3. Navigate to the file
  4. Click through the version history UI
  5. Download manually

This defeats the purpose of having a CLI tool for backup management. Being able to script version access would make Jottacloud significantly more useful for power users and server administrators.

Technical Context

The underlying infrastructure already supports this — the web application's FileService exposes a ListRevisions endpoint that returns revision metadata including download URLs. Exposing this existing capability through jotta-cli should be a relatively contained addition.

Alternative

If adding CLI commands is not planned, providing documented API access to file version history would allow the community to build tooling around it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions