Where Does PrivateBin Store Pastes and Config?
PrivateBin config file and paste data folders for self-hosted encrypted pastebin installs. With backup tips.
Last updated
PrivateBin keeps settings in cfg/conf.php at the web root. That file holds storage backends, expiration, and discussion options. Pastes themselves land in a data folder with hashed names.
Database and S3 modes move pastes off disk per that config. File mode is the default for small installs. Back up the config with the data folder. Pastes encrypt client side, so the server only sees ciphertext. Burn after reading suits secrets. QR codes share links offline. Templates change the theme. Short links keep URLs tidy.
Where PrivateBin stores this, by platform
/var/www/privatebin/cfg/conf.php
Storage and feature settings for the instance. Restrict read access to the web user. Keep with the data folder for moves.
/var/www/privatebin/data/pastes
Hashed paste files for file based storage. Database and S3 modes skip this folder. Copy whole tree with the config.
Frequently asked questions
what do i back up for a PrivateBin move
Copy cfg/conf.php with the data folder for full moves. The config holds storage and discussion settings. Pastes live as files in data. Both restore sharing.
where are PrivateBin pastes stored
Open cfg/conf.php in the web root to read storage and template blocks. Pastes default under data with hashed names. The file decides the backend. Check version paths.
Notice an outdated path? Let us know.