how to read backup?

131 views
Skip to first unread message

Phy Sik

unread,
Sep 20, 2021, 3:52:45 AM9/20/21
to QATrack+
Hello, 
we're running QAT+ with an postgres database under Linux.
I just made a backup following the documentation (https://docs.qatrackplus.com/en/stable/install/backup.html).

It succeeded, now I have a couple of files including a  ~190MB tarball. 

How do I use/read in this backup?
Do I really have to put all the saved data manually in the respective folders?
There has to be a command for that... 

Thanks a lot guys!  
 

Phy Sik

unread,
Sep 24, 2021, 2:24:58 AM9/24/21
to QATrack+
nobody?

tbe...@gmail.com

unread,
Oct 4, 2021, 8:10:34 AM10/4/21
to QATrack+
Hi,

the mentioned backup script has no corresponding "load" function, you have to recreate the db and copy the files by hand, it seems.
My backups contain one .css file, the tarball with the uploads and the database dump, that is not much to do by hand.

with kind regards
Thomas

Randle Taylor

unread,
Oct 5, 2021, 9:16:16 AM10/5/21
to tbe...@gmail.com, worksta...@gmail.com, QATrack+
Thanks for responding Thomas.  Sorry I didn't respond sooner but I didn't get email alerts  about either of your original posts for some reason. 

The backup contains a postgres backup file which you can use pg_restore to restore to a new database.   The uploads.tar.gz file can be uncompressed/unarchived and then you can copy the contents of that directory to qatrack/media/uploads/ (e.g. cp -r /path/to/backed/up/media/uploads/* /path/to/qatrackplus/qarack/media/uploads/ ) directory to restore any uploaded files. 
If you are not using file upload tests you can ignore the uploads directory and just restore the postgres file.

Randy

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/fee1c0b9-bba2-4e4b-bf05-dc900f496385n%40googlegroups.com.

Phy Sik

unread,
Oct 18, 2021, 2:43:11 AM10/18/21
to QATrack+
Thanks a lot guys. I was on a business trip the last two weeks, therefore my late response. I will try that! Thank you! 
Reply all
Reply to author
Forward
0 new messages