Page 1 of 1

XAMPP and script for backup failing

PostPosted: 30. January 2016 21:28
by alain.roger
Hi,

i'm trying to find a solution to synchronize my laptop and desktop compters so i always have the same status on my local web server for my personal development.

i found on https://www.apachefriends.org/faq_linux.html that if we have a script likethat one: sudo /opt/lampp/lampp backup my_sql_root_password i could do a full backup of /opt/lampp folder and database.

however when i test if i get a "phpmyadmin: FAILED" everytime.

what is the problem ? i check on 127.0.0.1/phpmyadmin and everything is fine and i can connect to it :(

thx

Re: XAMPP and script for backup failing

PostPosted: 30. January 2016 23:45
by Nobbie
alain.roger wrote:what is the problem ?


Didnt you read the very first line of the backup section in the FAQ? It says this:

Warning: The backup and restore functionality is still under development and may not work correctly.


That is the main problem, The backup does not work anyway.

Re: XAMPP and script for backup failing

PostPosted: 31. January 2016 00:17
by alain.roger
after browsing on internet i discovered that you need to comment:
if test -z "$d"
then
echo "Can't access database. Is MySQL running? Added the MySQL root password to end of command line?"
exit
fi

in the /opt/lampp/share/xampp sh file.

However as far as i understood, it backup only the database.
How can i do to backup, resp. sync the whole /opt/xampp/ directory between 2 computers ?
is there any script for creating a full sync or backup ? or should i use a third party application ?

Re: XAMPP and script for backup failing

PostPosted: 31. January 2016 11:33
by Nobbie
alain.roger wrote:is there any script for creating a full sync or backup ?


Not from Xampp.

alain.roger wrote:or should i use a third party application ?


Yes.