WordPress Installation [Part 3 of 3]
The last video in this series provides real-world techniques with troubleshooting tips and tricks that can be used in the work environment.
This new 3-part video series • WordPress Installation... includes step-by-step instructions for a WordPress Installation.
WordPress Installation [Part 1 of 3] • WordPress Installation...
WordPress Installation [Part 2 of 3] • WordPress Installation...
WordPress Installation [Part 3 of 3] • WordPress Installation...
#wordpress #wordpresstutorial #linux
The Linux commands are listed in the description for your convenience.
-----------------------
Client Option to send syslog to a remote server:
cat /etc/rsyslog.d/50-default.conf | tail -1
. @10.10.10.200:514
#!/bin/bash
Name Date 20240423.1330hrs
Backup Script (SQL, FileSystem)
var_date=`date +%Y%m%d`
var_name=`hostname`
Ensure that the backups directory exists
if [ ! -d /opt/backups ]
then
mkdir -p /opt/backups
fi
Do not backup, if the backup exists
Filesystem Backup
if [ ! -e /opt/backups/$var_name.$var_date.filesystem.tar.gz ]
then
tar czf /opt/backups/$var_name.$var_date.filesystem.tar.gz --exclude='/root/.ssh' /etc /root /var/{www,log} --exclude='/var/log/journal' 2_ANGLE_/dev/null
fi
MySQL Backup
if [ ! -e /opt/backups/$var_name.$var_date.wordpress.sql.gz ]
then
mysqldump wordpress | gzip -1 ANGLE /opt/backups/$var_name.$var_date.wordpress.sql.gz
fi
echo -e "$var_date\tLocal Backup Complete" ANGLE__ANGLE /var/log/syslog
Create Long-Term Storage
if [ ! -d /opt/backups/yearly ]
then
mkdir -p /opt/backups/yearly
fi
var_yfile=`ls -1 /opt/backups/ | sort | grep -E "filesystem" -m1`
if [ ! -e /opt/backups/yearly/$var_yfile ]
then
cp /opt/backups/$var_yfile /opt/backups/yearly/
fi
var_ysql=`ls -1 /opt/backups/ | sort | grep -E "wordpress" -m1`
if [ ! -e /opt/backups/yearly/$var_ysql ]
then
cp /opt/backups/$var_ysql /opt/backups/yearly/
fi
Prune Backup Files
find /opt/backups -maxdepth 1 -type f -mtime +364 -exec rm {} \;
-----------------------
Thank you for dropping by!
Subscribe Here:
kzitem.info...
Other Channels:
www.x.com/PaulWPoteete
/ paulwpoteete
CC by Dr. Paul W. Poteete
⏱️Timestamps
Timestamps
00:00 Introduction to WordPress Part 3
00:13 Prune Files
00:56 Long Term Storage
02:22 File System in WordPress
04:36 man grep
06:00 if not exist
06:40 Set Variable
06:58 View First File
07:24 sort
08:00 Yearly Backups
08:44 else echo
09:05 Install Tree
09:26 Run Backup from root
11:05 Pruning Backup Files
11:20 Find Statement
12:35 alias
13:19 Set Max Depth Statement
18:35 sql
20:46 Troubleshoot Script
21:32 Fix Missing Path
22:24 Run script
23:28 Conclusion to WordPress Part 3
Негізгі бет Ғылым және технология WordPress Installation [Part 3 of 3]
Пікірлер