Problems restoring a backup to a new server
I am attempting to setup a new server and trying to restore the file koha_library.sql.gz to the new server. I assume that the gz is a compressed file. Using the command in the terminal "mysql -uroot -p koha_library < koha_library.sql fails with the error file not found. I attempt to tar the file with tar -zxfv and get an error that it is not a valid tar file. Running Ubuntu precise1 and koha version 3.18.11.000. All help is appreciated. Jack Boulier, LRC Director 5221 Madison Ave. Sacramento, CA 95841 (916) 339-4370 Direct (916) 339-0305 FAX (916) 339-1500 Main jboulier@mticollege.edu
Hi Jack
I am attempting to setup a new server and trying to restore the file koha_library.sql.gz to the new server. I assume that the gz is a compressed file. Using the command in the terminal "mysql -uroot -p koha_library < koha_library.sql fails with the error file not found. I attempt to tar the file with tar -zxfv and get an error that it is not a valid tar file. Running Ubuntu precise1 and koha version 3.18.11.000. All help is appreciated.
Assuming you copied the file "koha_library.sql.gz" into directory "/tmp"... Change to /tmp: $ cd /tmp Decompress the file (this will result in file "koha_library.sql"): $ tar xzf koha_library.sql.gz Now load the file: $ mysql -uroot -p koha_library < koha_library.sql Be sure you call this command while being in the directory where "koha_library.sql" resides. Of course also giving the absolute path is possible: $ mysql -uroot -p koha_library < /tmp/koha_library.sql Hope this helps Kind regards, Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Jack
I am attempting to setup a new server and trying to restore the file koha_library.sql.gz to the new server. I assume that the gz is a compressed file. Using the command in the terminal "mysql -uroot -p koha_library < koha_library.sql fails with the error file not found. I attempt to tar the file with tar -zxfv and get an error that it is not a valid tar file. Running Ubuntu precise1 and koha version 3.18.11.000. All help is appreciated.
Assuming you copied the file "koha_library.sql.gz" into directory "/tmp"...
Change to /tmp:
$ cd /tmp
Decompress the file (this will result in file "koha_library.sql"):
$ tar xzf koha_library.sql.gz
Sorry, this is of course wrong! Instead decompress the file like (this will result in file "koha_library.sql"): $ gzip -d koha_library.sql.gz Then continue like I described:
Now load the file:
$ mysql -uroot -p koha_library < koha_library.sql
Be sure you call this command while being in the directory where "koha_library.sql" resides. Of course also giving the absolute path is possible:
$ mysql -uroot -p koha_library < /tmp/koha_library.sql
Good luck, Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
How dis you create the backup? Did you use mysqldump or did you use the koha commands? For the .gz file try using gzip -d {path_to_backup_file}/koha_library.sql.gz then you'll get a koha_library.sql file which you can use to restore the database -- View this message in context: http://koha.1045719.n5.nabble.com/Problems-restoring-a-backup-to-a-new-serve... Sent from the Koha-general mailing list archive at Nabble.com.
How dis you create the backup? Did you use mysqldump or did you use the koha commands? For the .gz file try using gzip -d {path_to_backup_file}/koha_library.sql.gz then you'll get a koha_library.sql file which you can use to restore the database Boulier, Jack wrote
I am attempting to setup a new server and trying to restore the file koha_library.sql.gz to the new server. I assume that the gz is a compressed file. Using the command in the terminal "mysql -uroot -p koha_library < koha_library.sql fails with the error file not found. I attempt to tar the file with tar -zxfv and get an error that it is not a valid tar file. Running Ubuntu precise1 and koha version 3.18.11.000. All help is appreciated.
Jack Boulier, LRC Director 5221 Madison Ave. Sacramento, CA 95841 (916) 339-4370 Direct (916) 339-0305 FAX (916) 339-1500 Main
jboulier@
_______________________________________________ Koha mailing list http://koha-community.org
Koha@.co
-- View this message in context: http://koha.1045719.n5.nabble.com/Problems-restoring-a-backup-to-a-new-serve... Sent from the Koha-general mailing list archive at Nabble.com.
participants (3)
-
akafortes -
Boulier, Jack -
Michael Kuhn