Docspell Backup

purpose and application

Backing up docspell configuration files and database.

definitions

None.

steps

  1. Become docspell user
  2. Backup database
    Terminal
    
      pg_dump -W postgres://docspell@127.0.0.1:5432/docspell | gzip > backup/docsell_$(date +%Y%m%dT%H%M%S).psql.gz
      
  3. Backup joex config
    Terminal
    
      cp docspell-joex-0.41.0/conf/docspell-joex.conf backup/
      
  4. Backup rest server config
    Terminal
    
      cp docspell-restserver-0.41.0/conf/docspell-server.conf backup/
      

Resources

None.