how to create a complete backup of ezeelogin installation?

How do i create a complete backup of my ezeelogin installation?


 Execute the command /usr/local/sbin/backup_ezlogin.php and this would create a binary executable backup archive in /var/ezlogin_backup_xx_x.bin.

[root@vectro ~]# /usr/local/sbin/backup_ezlogin.php

                   _             _      

  ___ _______   ___| | ___   __ _(_)_ __ 

/ _ \_   / _ \/ _ \ |/ _ \ / _` | | '_ \

|   __// /   __/   __/ | (_) | (_| | | | | |

\___/___\___|\___|_|\___/ \__, |_|_| |_|

                        |___/

#########################

#   Ezeelogin Backup     #

#########################

Checking environment... done (1797)

Based on your command line parameters, you may be prompted to enter the missing settings. The default value will be given in bold . Simply pressing enter key will choose the default value.

Creating directories... done (4914)

Copying files... |

done (4986)

Backup database... done (5236)

Backup logs... done (5244)

Creating executable archive...    

########################################################

Ezeelogin backup created: /var/ezlogin_backup_v7.8.0_b381_Thu_Oct_04_2018_09_10_32_UTC.bin

(Log: /var/log/ezlogin_backup.log )

########################################################

For free assistance, please contact support@ezeelogin.com

 

Thank you for choosing Ezeelogin.

www.ezeelogin.com

The directory /var/log/ezlogin stores the user ssh sessions  that is recorded. This dir could run into huge size ( 1GB >) which would cause the backup script to take long to complete ( The log dir has to be tar'red and then gzip'ed compressed which is time consuming and resource intensive).  In such, cases its advisable to skip the log directory while running the backup script as follows.

[root@vectro ~]#    /usr/local/sbin/backup_ezlogin.php -nologs

 You may store this backup archive generated in /var/ezlogin_backup.x.x remotely,  in case you need to restore it when your primary node is unrecoverable.

 When your primary node goes down, all you need is to migrate the license to the new ip from the portal and execute the backup archive on the server and you are ready to go..

 

To restore, simply execute the archive created.

[root@vectro ~]# /var/ezlogin_backup_v7.8.0_b381_Thu_Oct_04_2018_09_10_32_UTC.bin

Creating directory ezlogin_backup_v7.8.0_b381_Thu_Oct_04_2018_09_10_32_UTC

Verifying archive integrity... All good.

Uncompressing Ezeelogin 7.8.0 backup (Thu_Oct_04_2018_09_10_32_UTC).............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

/ _ \_   / _ \/ _ \ |/ _ \ / _` | | '_ \

|   __// /   __/   __/ | (_) | (_| | | | | |

\___/___\___|\___|_|\___/ \__, |_|_| |_|

                           |___/

 

 

#########################

#   Ezeelogin Restore     #

#########################

done (1797)

Required PHP extensions...

mysqli   -> Success

openssl   -> Success

posix   -> Success

pcre   -> Success

json   -> Success

curl   -> Success

mcrypt   -> Success

Required PHP functions...

exec   -> Success

proc_open   -> Success

proc_close   -> Success

fopen   -> Success

fsockopen   -> Success

file   -> Success

file_get_contents   -> Success

escapeshellarg   -> Success

preg_match   -> Success

ini_get   -> Success

Operating system: Linux (x86_64)

PHP version: 5.3.3

done (1863)

Based on your command line parameters, you may be prompted to enter the missing settings. The default value will be given in bold . Simply pressing enter key will choose the default value.

Checking database connectivity.done (3107)

Checking database availability.done (3121)

Review settings:

Install web panel files in                                 : /var/www/html/ezlogin/

Install web panel system files in                         : /var/www/ezlogin/

URI path to access web panel                               : /ezlogin/

MySQL server                                               : localhost

MySQL port/socket                                         : /var/lib/mysql/mysql.sock

Force HTTPS for web panel?                                 : no

Secure MySQL connection?                                   : no

Accept the above settings? ( y /n/x) : y

 

Creating and setting up database... done 

Adding ezsh to shells... done 

Creating group and users... done 

Restoring logs... done

Creating directories... done 

Copying files... |

ERROR copying: setup/crontab -> ezadmin

done 

Setting access...  

done 

Setting file modes

done 

Setting file owners...

done

Setting file groups... 

ERROR chgrp: ezadmin -> root

done

Setting up config... done

Setting up cron... done 

Downloading GeoLiteCity database from www.maxmind.com... /root/ezlogin_backup_v7.8.0_b381_Thu_Oct_04_2018_09_10_32_UTC/setup/setup.php on line

done 

 

########################################################

Ezeelogin restored. (Log: /var/log/ezlogin_restore.log )

########################################################

 

3 major errors occurred.

Ezeelogin may not work correctly.

Please check the log file and correct the problems.

For assistance, please contact support with the content of the log file.

 

2 minor errors occurred.

Ezeelogin should work correctly.

Please check the log file.

For assistance, please contact support with the content of the log file.

 

###################################################################

Web panel installed at:

  ' /var/www/html/ezlogin/ '

  ( http://yourdomain.com/ezlogin/ ).

###################################################################

 

Note: Please check the log file to see if any error occurred.

 

TODO NOTES:

Enable web server, MySQL server and cron to startup at boot time.

 

For free assistance, please contact support@ezeelogin.com

 

Thank you for choosing Ezeelogin.

www.ezeelogin.com

 

 

If you want to do the restore in one step with your existing settings and without being prompted.

 

sh ezlogin_ backup _v7.9.0_b381_Wed_Feb_13_2019_23_26_03_IST.bin    -- -skipgeolite -auto -force -ACCEPT_SETTINGS -I_ACCEPT_EULA

 Replace the  backup filename with your backup file.

 

 

You can check the   /var/log/ezlogin_backup.log and  /var/log/ezlogin_restore.log to see if there are any errors occurred during backup and restore process

 

0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to truncate the ssh session logs recorded
    Viewed 1836 times since Tue, Dec 5, 2017
    How can we upgrade php in an ezeelogin installed server ?
    Viewed 907 times since Fri, Jan 25, 2019
    How to move servers/migrate servers from one Ezeelogin installation to another?
    Viewed 1745 times since Thu, Jun 15, 2017
    Backup Ezeelogin failed during Ezeelogin version upgrade
    Viewed 33 times since Tue, Jul 28, 2020
    How to renew/update standalone license ?
    Viewed 442 times since Thu, Feb 27, 2020
    How do i uninstall ezeelogin?
    Viewed 2176 times since Wed, Jun 14, 2017
    Database connectivity credentials and configuration file
    Viewed 1680 times since Thu, Nov 23, 2017
    How do i export all server password into an excel file?
    Viewed 1874 times since Thu, Jun 15, 2017
    How to change the private key in use and change the default public key in use?
    Viewed 3134 times since Fri, Dec 1, 2017
    Migrate jump server installation from one server to another
    Viewed 2565 times since Wed, Jun 14, 2017