XAMPP and script for backup failing

Problems with the Linux version of XAMPP, questions, comments, and anything related.

XAMPP and script for backup failing

Postby alain.roger » 30. January 2016 21:28

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
What does not kill you, makes you stronger

RogTek, Web agency: htttp://www.rogtek.com
facebook: http://www.facebook.com/rogtek
User avatar
alain.roger
 
Posts: 13
Joined: 03. February 2012 22:14
Operating System: Kubuntu 15.10

Re: XAMPP and script for backup failing

Postby Nobbie » 30. January 2016 23:45

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.
Nobbie
 
Posts: 8779
Joined: 09. March 2008 13:04

Re: XAMPP and script for backup failing

Postby alain.roger » 31. January 2016 00:17

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 ?
What does not kill you, makes you stronger

RogTek, Web agency: htttp://www.rogtek.com
facebook: http://www.facebook.com/rogtek
User avatar
alain.roger
 
Posts: 13
Joined: 03. February 2012 22:14
Operating System: Kubuntu 15.10

Re: XAMPP and script for backup failing

Postby Nobbie » 31. January 2016 11:33

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.
Nobbie
 
Posts: 8779
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests