Bug 10999

Summary: koha-restore --force option to just overwrite easily a Koha instance with an older backup
Product: Koha Reporter: Pablo AB <pablo.bianchi>
Component: Command-line UtilitiesAssignee: Galen Charlton <gmcharlt>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: mirko
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Pablo AB 2013-10-04 20:06:44 UTC
Right now for eg
koha-restore /var/spool/koha/myInstance/myInstance-2013-09-23.sql.gz  /var/spool/koha/myInstance/myInstance-2013-09-23.tar.gz
gives 78 lines starting with "ERROR: File exists:" and a "adduser: The user `myInstance' already exists."
It would be great to just overwrite whatever needs to have the dump runing again, without having to koha-remove.

BTW, even using koha-remove before koha-restore, a username problem that
GRANT ALL PRIVILEGES ON `koha_myInstance` . * TO 'koha_myInstance'@'localhost';
fix. Something to do with bug 10517?
Comment 1 Mirko Tietgen 2014-03-03 15:53:41 UTC

*** This bug has been marked as a duplicate of bug 9754 ***