You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
supertask db backup [--output /path/to/tasks-backup.db]
117
-
supertask db clear --confirm CLEAR
118
-
supertask db restore --from /path/to/tasks-backup.db --confirm RESTORE
124
+
supertask db clear --confirm CLEAR [--keep-stopped]
125
+
supertask db restore --from /path/to/tasks-backup.db --confirm RESTORE [--keep-stopped]
119
126
```
120
127
121
-
`db backup` creates and validates a standalone SQLite snapshot. `db clear` and `db restore` refuse to run while another Gateway or task is active; both create a safety backup before changing data. Stop the PM2 Gateway before using the destructive CLI commands.
128
+
`db backup` creates and validates a standalone SQLite snapshot. For `db clear` and `db restore`, the CLI automatically stops a PM2 Gateway whose PID matches the current database's fresh ready lock, then restores its previous running state. Both commands create a safety backup before changing data and still refuse active tasks or an unverified/foreground Gateway. Use `--keep-stopped` to leave a previously running PM2 Gateway stopped.
0 commit comments