Restoring Taiga to "empty" (for creating a backup image)

808 views
Skip to first unread message

taiga.a...@gmail.com

unread,
Feb 8, 2016, 11:49:35 AM2/8/16
to taigaio
Taiga Team-

I want to create an image of my taiga server (for backup purposes) but do not want to keep the projects and data. Is there an easy way of wiping the taiga projects and restoring the sample projects only? I thought about doing it manually via the project delete button, but that only clears out projects I have access to. Would a database SQL be the best method?

Thanks!

Gordon

David Barragán

unread,
Feb 8, 2016, 12:48:47 PM2/8/16
to taiga.a...@gmail.com, taigaio
Be careful because this commands remove the database completely

You can use:

workon taiga
cd taiga-back
sh regenerate.sh


the regenerate.sh do this:


# For postgresql
echo "-> Remove taiga DB"
dropdb taiga
echo "-> Create taiga DB"
createdb taiga
echo "-> Load migrations"
python manage.py migrate
echo "-> Load initial user (admin/123123)"
python manage.py loaddata initial_user --traceback
echo "-> Load initial project_templates (scrum/kanban)"
python manage.py loaddata initial_project_templates --traceback
echo "-> Generate sample data"
python manage.py sample_data --traceback
echo "-> Rebuilding timeline"
python manage.py rebuild_timeline --purge

--
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/7b62b373-045b-4c78-9f85-e66578c76ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

gordon...@gmail.com

unread,
Feb 9, 2016, 9:36:13 AM2/9/16
to taigaio
David-

That worked perfectly. Thank you for the tip! :)

Gordon

David Barragán

unread,
Feb 9, 2016, 9:37:52 AM2/9/16
to gordon...@gmail.com, taigaio
Great. You are welcome.


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