Move files between your machines

Use your Google Drive as storage and justdrive as the courier. Sign in once on the web, then any VPS can pull a short-lived token.

How it works

Sign in once

Connect Google Drive on the website. Machines you approve later use that one connection instead of signing in to Google themselves.

No browser needed

justdrive login on a headless VPS prints a short code. Approve it from your laptop.

justdrive login

Revoke any machine

Every machine gets its own token. Revoke one and it stops getting Drive access immediately.

Files never touch our servers

Machines get short-lived Google tokens and talk to Drive directly. We only record what happened.

Shared folder

One juststore folder in your Drive, so every machine sees the same files.

Machine to machine

Send a file to another machine by name. It waits in that machine’s inbox.

Install

curl -fsSL https://drive.astexlabs.com/install.sh | sh
justdrive login

Commands

  • justdrive login [--name vps-2]

    Sign in this machine using a device code.

  • justdrive logout

    Revoke this machine and delete its local session.

  • justdrive status

    Show the account, this machine, and server reachability.

  • justdrive devices

    List machines signed in to your account.

  • justdrive files ls [path]

    List files. Supports --json.

  • justdrive files upload <local> [path]

    Upload a file.

  • justdrive files download <path> [local]

    Download a file.

  • justdrive files mkdir <path>

    Create a directory.

  • justdrive files mv <src> <dest>

    Move or rename.

  • justdrive files rm <path> [--permanent]

    Move to the Drive trash, or delete outright.

  • justdrive share <path> [--email] [--role]

    Share a file or copy a link.

  • justdrive send <file> --to vps-2

    Upload a file into another machine’s inbox.

  • justdrive inbox

    List files sent to this machine.

  • justdrive receive [id|all] [dir]

    Download and acknowledge them.