Stash-backup

:placard: Summary stash automated backup container.
:link: Repository https://github.com/feederbox826/stash-backup

Features

  • Takes full and incremental backups of your stash database
  • Takes differential backups to decrease storage usage
  • Optionally also backs up your custom images (performer and tag images)

Installation

  • Integrate the docker-compose.yml into your existing docker install and populate it with your stash URL and apikey
  • Adjust the cron as desired, https://cron.help/ is a good resource for human-readable cron
  • (OPTIONAL) add a discord webhook to notify you and make sure that a backup was successfully completed

Finally compiled the space savings for 2025

  • DIFF 1/10mins
  • FULL 1/day
  • Database: 14.1 → 20.5MB
  • rescrape of scenes, lots of edits and diffs: 29.0MB
  • Average day: 18.8MB
  • Average month: 575.5MB
  • Year: 6.8G (70.1MB compressed)
    • 397 full backups
    • 12,690 diffs

My incomplete 2024 backup is 40MB compressed from 3.5G uncompressed, SQLite and especially empty files compress really well.

1 Like