We customized DIY backup script that take backup of Postreges database using pg_dump and Stash "shared" folder present inside stash home directory. Other folders and files inside stash home are not taken backup for three reasons, one they are only temp files, logs, and cache data also not suggested by atlassian to include in the backup of stash home directory, two it may vary between multiple instances of stash datacenter, three our shared folder inside stash home is NFS mounted and has ability take snapshot backup that is pretty fast and we don't care other files in stash home for reason one & two.
When we restore Stash from back, we create empty stash home directory and copy shared folder inside home from our backups. Postgres database is restore using standard pg_restore procedure. Once we start Stash on these restores, we see Stash home directory's temp files & folders are automatically populated except changing anything on "shared" folder, also Stash is started as usual.
However above experimented restore procedure is not documented as is on Atlassian restore documentation from DIY backups. I would like to know from Atalassian, Am I missing anything in the above explained backup and restore process that will create serious impacts down the line.
If it looks a standard way to do, can this be documented on DIY backup store documentation for other reference?, because pretty useful to know for Stash datacenter backup and restore process.