Backing up a taiga project

1,043 views
Skip to first unread message

ric...@gmail.com

unread,
Apr 4, 2016, 10:42:54 PM4/4/16
to taigaio
Hello All,

I'm running a private Taiga server--and for some reason in the past--I thought that we needed to back up both the Postgresql database AND the JSON export object. 

I'm now thinking that it's JUST the database that needs to be backed up (I just looked at the PG dump, and it looks pretty complete).

Am I correct?

And just to confirm, are there any other files that I'd need to backup as well? 

It seems to me that the /media folder contains images (e.g., member avatars) referenced by the backup objects (at least I see this in the JSON object).

Thanks much.

Rich

Alejandro Alonso

unread,
Apr 5, 2016, 1:33:59 AM4/5/16
to Rich Bloch, taigaio
Hello Rich!, 

You are right, to do full backup of your instance you only need a database dump (you can generate it using pg_dump) and the media folder (containing all the avatar and files uploaded by users).

Regards!,

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/5a37d570-946f-4276-bbf8-6caaef99012f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

goran...@gmail.com

unread,
Jan 9, 2017, 12:28:01 PM1/9/17
to taigaio, ric...@gmail.com
Hey guys

I was just wondering, when I create a export json dump file from the admin panel, the uploaded media (attachments etc.) is included as raw data in the json file itself. 
So why should I still backup the media folder?

David Barragán

unread,
Jan 9, 2017, 12:44:13 PM1/9/17
to goran...@gmail.com, taigaio, Rich Bloch
The export process generate a json file every time reading the database and the media directory, so if you only backup your database you lose the attachments and the rest of media files.


Regards

To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.

To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

ric...@gmail.com

unread,
Jan 9, 2017, 10:03:55 PM1/9/17
to taigaio, goran...@gmail.com, ric...@gmail.com
Hola,

As David points out, both media files and database (either db or JSON export) need to be backed up.

We do both, using simple bash scripts that get run every 12 hours (through cron jobs):
For our projects, archived media files are ~1.5 MB in size. Database dump is ~200 KB. We then run a separate script (again cron) that deletes aged files after some period (3 and 6 months, depending):
You can see we try to be as lazy as possible... or rather, we rely on an abstraction of DRY for everything in our work lives. 

Overall, very easy to implement, and great piece of mind for our teams.


Rich

David Barragán

unread,
Jan 10, 2017, 2:43:14 AM1/10/17
to Rich Bloch, taigaio, Goran Saric
Great, but one last tip, it is a good practice to backup the settings of the app too;

taiga-back/settings/local.py
taiga-front-dist/dist/conf.json
taiga-events/config.json

Regards

To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.

To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages