$ mysqldump -u DBUSER -p DBNAME > DBNAME.sql
# mysql -u USER -p DBNAME < dump.sql
Just reference for restarting apache, different strokes for different servers:
# /etc/init.d/httpd restart
# /etc/init.d/httpd start
# /etc/init.d/httpd stop
# service httpd restart
# apachectl -k graceful
sometimes you need sudo because it might only see the path from root
strangely, I had been pushing to this repository for weeks no problems. Then one day I get the error message for the title above:
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 506 bytes, done.
Total 5 (delta 2), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
I was a member of the group in question, checked via:
$ groups myusername
and verified that group had write permissions:
$ ls -la
Turned out a few files had shown up in the object directory with different permissions.
ssh to server
sudo chmod -R g+ws *
sudo chgrp -R yourgroup *
git repo-config core.sharedRepository true
and then try to push again