squarecloud app snapshot and squarecloud db snapshot work the same way: create makes one, list shows the ones stored, restore puts one back.
For create, the app ID is optional: see how the CLI finds your app. The database ID is optional too: without it, the CLI opens a picker of your databases.
squarecloud app snapshot create
Usage
Output
snapshot list in a few minutes. A download is saved readable only by you (0600 permissions), and a failed --download removes the partial file.
squarecloud app snapshot list
Usage
_javascript_manual.
Pass a snapshot ID from that list to see its versions and their version IDs, which restore needs:
--json, the output keeps the same filter. Listing snapshots needs an active plan.
squarecloud app snapshot restore
Usage
Replaces the application’s current files with a snapshot version. Take
<snapshotID> and <versionID> from app snapshot list. It asks for y/N confirmation first.
Output
squarecloud db snapshot create
Usage
Works like
app snapshot create, for a database.
squarecloud db snapshot list
Usage
restore takes.
squarecloud db snapshot restore
Usage
Replaces the database’s current data with a snapshot version, after a
y/N confirmation.

