[Earl] Board Active Cli

[Earl] Board Active Cli 1.0.0a

No permission to download
XF Compatibility
  1. 2.2.x
Headline
This add-on allows you to turn your board on and off with command line interface.
Short Description
Download and Discuss Premium, Business[Earl] Board Active Cli 1.0.0a version on NullPro Community. It is zip Extention type and 6.7 KB File size. From [Earl] Board Active Cli have 238 Views.
This add-on allows you to turn your board on and off with command line interface.

So you can use this option to flip the "Board active" switch when you preparing to make a database backup and flip it back on when done.

You can automate the whole backup process by making a shell script like this and adding it to the crontab



Bash:

#!/usr/bin/env bash

############################################################################
# #
# SET VARS #
# #
############################################################################

vhost_path=/home/nginx/domains/yourdomain.com
public_doc_dir=$vhost_path/public
random_string=$(cat /dev/random | tr -dc '0-9' | fold -w 256 | head --bytes 7)
backup_dir=$public_doc_dir/backups/$(date +"%d-%m-%Y")/$random_string
elastic_snapshot_repo=/home/es_repo

dbuser=$(grep username $public_doc_dir/src/config.php | awk -F\' '{ print $6 }')
dbpass=$(grep password $public_doc_dir/src/config.php | awk -F\' '{ print $6 }')
dbname=$(grep dbname $public_doc_dir/src/config.php | awk -F\' '{ print $6 }')

############################################################################
# #
# BACKUP PROCESS #
# #
############################################################################

mkdir -p $backup_dir
# board active switch turns to off
/bin/env php $public_doc_dir/cmd.php xf:board-active off -m "Sorry for the inconvenience but we're performing some maintenance at the moment. we'll be back online shortly!"
mysqldump --opt --default-character-set=utf8mb4 -u$dbuser -p$dbpass $dbname > db$(date +"%d-%m-%Y").sql
....
...
..
# Board active switch turns to on and message sets back to the default
/bin/env php $public_doc_dir/cmd.php xf:board-active off -m "Sorry, we're currently unavailable. Please check back later.."
Author
anne51
Views
238
Extention type
zip
File size
6.7 KB
First release
Last update
Ratings 0.00 star(s) 0 ratings
Link was Broken? Please  Send Message to NP Team with Ticket, You will get it very quickly!
Support Developer If you are satisfied with your test or project have earn money successfully, Maybe you can click more information button to support with buying.
More resources from anne51
AcyMailing Enterprise
AcyMailing Enterprise
Best free WordPress & Joomla! newsletter and marketing plugin
WORKSUITE - HR, CRM and Project Management
Nulled WORKSUITE - HR, CRM and Project Management
Worksuite aspires to be your one-stop business solution to handle and automate as business tasks
[AndyB] XFRM sort buttons
[AndyB] XFRM sort buttons
This add-on is designed to be used on forums which use the XenForo Resource Manager.
[AndyB] Amazon parser all
[AndyB] Amazon parser all
Adds Amazon affiliate ID to links in all messages.
[AndyB] Account upgrade receipt
[AndyB] Account upgrade receipt
Creates an account upgrade receipt.

Similar resources

[OzzModz] Copy Message to Clipboard J
Adds a copy to clipboard button to messages.
[AndyB] Inactive Members J
Email of the 25 most popular topics is sent to all members that have been inactive for over 60 days
[OzzModz] Recently Active Days Override N
allow admins to set a time in days to return user results when searching by user
Top