Just a very quick one-liner I use when testing my import scripts on tryton (on gentoo):
/etc/init.d/trytond stop; sudo -u postgres dropdb tryton; sudo -u postgres createdb -O tryton tryton; sudo -u postgres psql tryton < /var/lib/postgresql/tryton_minimal_2020-12-31.sql ; /etc/init.d/trytond start
obviously the backup DB file needs to be created first ;)
Share on Twitter Share on Facebook
Comments
There are currently no comments
New Comment