Publit.Si
Docs›Backup and moving

Installation

Backup and moving to a new computer

Your posts, media and content folders are not in Git. Publit.Si backs up its database every day by itself; for a copy on another disk, let it write a full backup to a drive or cloud folder, or run pnpm backup.

Automatic external backup

The passphrase is kept in the system's keychain (Mac Keychain, Windows DPAPI, Linux keyring), never in .env. If the target is missing – drive unplugged, share not mounted – you get a notification and a warning on that page, and the backup is made as soon as the target is back.

  1. Under Settings › System › External backup, choose a folder on another disk: a USB drive, a cloud sync folder (iCloud Drive, OneDrive, Dropbox, Google Drive, Nextcloud …) or a mounted network share (SMB/NFS).

  2. Pick daily or weekly, how many backups to keep, whether .env comes along (encrypted with the same passphrase) and a passphrase.

  3. The worker writes a full backup into PublitSi-Backups inside that folder – also while the app is closed – and deletes the oldest beyond the number you keep.

Full backup by hand

  1. In the publitsi folder (it works while Publit.Si runs):

    pnpm backup                 # or: pnpm backup /Volumes/MyDrive --with-env
  2. It writes a folder PublitSi-Backup-<date> (by default in ~/PublitSi-Backups) with the database, your media, the content/ folders and your token key.

  3. The token key is encrypted with a passphrase you choose. Keep it safe: without it the backup can't restore your connections.

Daily database backups

While Publit.Si runs, it copies its database once a day and keeps the last 7 days and 4 weeks. Settings › Backups shows the last backup and has Back up now and Open folder. Before every update, the database is also copied to backups/ in the data folder.

  1. To go back to one of them on this computer:

    pnpm restore:db /path/to/publitsi-<date>.db

Move to a new computer

  1. On the new computer, do Get the code and Install the tools.

  2. Copy over ~/.cloudflared/ for the tunnel, and .env unless your backup has it.

  3. Restore the backup; it asks for the passphrase and puts back .env if the backup has one. If Publit.Si already has data there, add --force (the current data is kept in a before-restore-… folder).

    pnpm restore /path/to/PublitSi-Backup-<date>
  4. Continue with Start Publit.Si. Your accounts stay connected.

Check

Settings › Status shows your accounts as connected, the last post and the last external backup.

Stuck? Search the troubleshooting list or write to us . Leave out secrets and tokens.