How do I restore phabricator if I deleted the files but the database is still intact? -


so, did stupid rm -rf on folder complete phabricator folder present.

the whole phabricator database still intact though.

i cloned required repos on same old location:

somewhere/ $ git clone https://github.com/phacility/libphutil.git somewhere/ $ git clone https://github.com/phacility/arcanist.git somewhere/ $ git clone https://github.com/phacility/phabricator.git 

apache configured during previous install.

i ran:

./bin/storage upgrade 

after went address pointed phabricator folder. following error:

1146: table 'phabricator_user.user_cache' doesn't exist

how resolve it? or in general, what's best way reinstall phabricator using old database?

thanks

well, if still have database, make mysqldump data (export db data - should have default - cron job, running backup script on backup machine/usb/hard/cloud)

do fresh reinstall on phabricator(even on whole lamp).

import previous backup.sql did.

after setting user/passwd/host/port/ in "path_to_phab/conf/local/local.json" via command line or editing file, try run

./bin/storage upgrade 

this should work fine if have storage engine set mysql db (not-recommended). if have different storage engine (like hdd) try restore data reproducing path have data in phab`s fresh installation conf files along mysql import.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -