Skip to content

About

Paperless-NGX backup script

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Paperless-NGX Backup

Paperless-NGX backup script

How to Use the Script

  1. Modify the BACKUP_DIR variable to match your actual backup directory. If you are having trouble with script try setting backup directory to ../export and make sure your docker compose has a drive setup for export.
  2. Save the script as paperless_backup.sh.
  3. Give execution permission:
    chmod +x backup_paperless.sh
  4. Run manually for testing:
    ./backup_paperless.sh

Set Up as a Daily Cron Job

  1. Open the crontab editor:
    crontab -e
  2. Add this line at the end to run the script daily at 2 AM:
    0 2 * * * /path/to/backup_paperless.sh >> /var/log/backup_paperless.log 2>&1

Summary

  • Creates a new backup daily.
  • Retains only the last 7 backups.
  • Deletes older backups automatically.

About

Paperless-NGX backup script

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages