4
1

On page admin/tools/exporter i created data backup of my site. Now I want to import this backup to my site but near to the heading "Available backups" nothing.

Backup files (localhost-201103290751.tar.gz) is on the server in a folder /forum_modules/exporter/backups

alt text

How to import data from backup to my site?

This question is marked "community wiki".

asked 29 Mar '11, 08:50

Tsuba's gravatar image

Tsuba
13151114
accept rate: 28%

edited 02 Apr '11, 03:49

good question. I assumed that with an export that there would be an import function! I wonder if you could use the datadump --format=xml and reimport that output as a fixture?

I wonder if you could edit the sximporter to import these files (or at least modify it)?

(02 Apr '11, 22:39) Thomas King

@Thomas King

I would like to use the built-in OSQA functionality rather than invent something new.

(03 Apr '11, 07:18) Tsuba

This doesn't answer your question directly, I apologize. However I searched for the answer for myself and came up with the impression that the import/export functionality is broken.

I came up with a different solution, which is to ignore the xml data exporter, and export the database itself.

  mysqldump --user osqa -p osqa > osqa-backup.txt

and to restore:

 sudo mysql -u osqa -p --database="osqa" < osqa-backup.txt

The only thing I think is misses is the uploaded files, and the settings contained in settings_local.py If you grab those, you're golden.

link

answered 18 Aug '11, 12:48

Catskul's gravatar image

Catskul
10647
accept rate: 0%

edited 18 Aug '11, 22:03

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×10
×8
×1

Asked: 29 Mar '11, 08:50

Seen: 605 times

Last updated: 18 Aug '11, 22:03

powered by OSQA