pal cli sync
End-to-end encrypted sync of your memory between your machines
pal cli sync <command>Examples:
pal cli sync setup --store /mnt/nas/pal-sync
pal cli sync join --store "s3://<bucket>/<prefix>?profile=<name>"setup creates the account on the first machine and prints the recovery key. join adds another machine with that key, read from the prompt or stdin, never from an argument.
The store is a folder path or file:// URL, on each machine the path where it reaches the same folder (a NAS mount, a synced folder). For an S3 bucket it is "s3://<bucket>/<prefix>?profile=<name>", in quotes so zsh does not read the ? as a filename pattern; &endpoint=<url> points it at another S3-compatible service.
The S3 key is read from that AWS profile in ~/.aws, or without a profile from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, then AWS_PROFILE or default. PAL never saves it. The key needs only s3:ListBucket on the bucket, and s3:GetObject and s3:PutObject under the prefix.
Once set up, sync also runs on its own at session start and end, and after a turn at most every 15 minutes. The store only ever holds encrypted blobs under opaque names; raw transcripts and this machine's state stay local.
pal cli sync run
Sync now
pal cli sync runpal cli sync setup
Create the sync account on this machine and print its recovery key
pal cli sync setup [options]| Option | What it does |
|---|---|
--store <where> | Where both machines sync through: a folder they can both reach, or s3://<bucket>/<prefix>?profile=<aws profile> |
--kit <file> | Also write the recovery key as a page to print |
pal cli sync join
Join the sync account another machine set up, with its recovery key
pal cli sync join [options]| Option | What it does |
|---|---|
--store <where> | Where both machines sync through: a folder they can both reach, or s3://<bucket>/<prefix>?profile=<aws profile> |
pal cli sync status
Which store this machine syncs through, the last sync and the quarantine
pal cli sync statuspal cli sync recovery-key
Print this account's recovery key again
pal cli sync recovery-key