Restore file compression method


(Andrey) #1

How do I correctly compress backup file after editing dump.sql?
I compressed it on my mac with tar -zcvf but when I uploaded edited archive I am getting error

 EXCEPTION: /var/www/discourse/lib/backup_restore/restorer.rb:266:in `block in extract_dump': Failed to extract dump file.
tar: dump.sql.gz: Not found in archive

while the file dump.sql.gz is definitely inside the tar.gz file


(Sam Saffron) #2

We have a very specific format, you can not just upload a DB dump like that, we have a very specific format to our backups. Can you create your backup using the admin console?