This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/hosts | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | awk '{ print $1 }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OUTPUT_DIR=/root | |
BACKUP_USER=backupuser | |
BACKUP_DIR=/home/backupuser/ | |
# Identify the databases on this server | |
databases=$(mysql -s -r -N -e 'show databases where `Database` not in("information_schema", "performance_schema", "accounts", "mysql", "sys")') | |
for database in $databases; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################### | |
# Script to update wordpress sites, plugins and themes | |
# Created by: Sam R. | |
# Created at: 2024-11-01 | |
# Usage: | |
# - edit the script BASE_PATH as appropriate | |
# - add the site directories to the SITES array | |
# - run the script ./wordpress-update.sh | |
################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################### | |
# Script to update all docker-compose based wordpress sites, plugins and themes | |
# Created by: Sam R. | |
# Created at: 2023-05-05 | |
# Usage: | |
# - run the script from the directory, or parent directory, containing your docker-compose.yml files | |
# - the script will skip any directories that don't contain a docker-compose.yml or wordpress container | |
# - the script will update wordpress core, plugins and themes in each directory | |
# |
OlderNewer