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 | |
# Configuration variables - replace with your values | |
REMOTE_HOST="[email protected]" | |
REMOTE_PATH="files" | |
LOCAL_PATH="wp-content" | |
# Database name | |
TIMESTAMP=$(date +%Y%m%d_%H%M%S) | |
DB_BACKUP="wp_backup_${TIMESTAMP}.sql" |
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 | |
# Credit to https://github.com/rizaardiyanto1412/rizaardiyanto1412/blob/main/installwp.sh | |
# Check if WP-CLI is installed | |
if ! command -v wp &> /dev/null | |
then | |
echo "WP-CLI is not installed. Please install it first." | |
exit 1 | |
fi |
OlderNewer