This file contains 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 | |
# Set up local and remote credentials | |
LOCAL_WP_PATH="/home/wpe-user/sites/asianlegacystg" # Change to your WordPress directory path | |
LOCAL_UPLOADS_PATH="${LOCAL_WP_PATH}/wp-content/uploads" # Local uploads directory path | |
DB_BACKUP_PATH="/home/wpe-user/sites/asianlegacystg/wp-content/_db_backups" # Local backup directory | |
DB_RESTORE_REMOTE_PATH="/home/wpe-user/sites/asianlegacystg/wp-content/_db_backups/nas/content/live/asianlegacylib/wp-content/_db_backups" | |
DB_BACKUP_NAME="_wp_stage_backup_$(date +%F_%H-%M-%S).sql" # Backup file name with a timestamp | |
TAR_BACKUP_NAME="${DB_BACKUP_NAME}.tar.bz2" |
This file contains 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
update `wp_options` set `option_value` = REPLACE(`option_value`, 'https://asianlegacylibrary.org', 'https://asianlegacystg.wpengine.com'); | |
update `wp_62eed17a57_options` set `option_value` = REPLACE(`option_value`, 'https://asianlegacylibrary.org', 'https://asianlegacystg.wpengine.com'); |
This file contains 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 | |
# Define server addresses and directories | |
STAGING_SERVER="user@staging-server-address" | |
PROD_SERVER="user@production-server-address" | |
REMOTE_DIR="/path/to/staging/dir/" | |
LOCAL_DIR="/path/to/local/dir/" | |
PROD_DIR="/path/to/production/dir/" | |
This file contains 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 | |
# Define server addresses and directories | |
STAGING_SERVER="user@staging-server-address" | |
PROD_SERVER="user@production-server-address" | |
REMOTE_DIR="/path/to/staging/dir/" | |
LOCAL_DIR="/path/to/local/dir/" | |
PROD_DIR="/path/to/production/dir/" | |
This file contains 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 | |
# Set up local and remote credentials | |
LOCAL_WP_PATH="/nas/content/live/asianlegacystg" # Change to your WordPress directory path | |
LOCAL_UPLOADS_PATH="${LOCAL_WP_PATH}/wp-content/uploads" # Local uploads directory path | |
DB_BACKUP_PATH="${LOCAL_WP_PATH}/wp-content/_db_backups" # Local backup directory | |
DB_BACKUP_NAME="_wp_stage_backup_$(date +%F_%H-%M-%S).sql" # Backup file name with a timestamp | |
TAR_BACKUP_NAME="${DB_BACKUP_NAME}.tar.bz2" # Tar Backup file name with a timestamp | |
This file contains 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/sh | |
speed="1.15" | |
mkdir "speed-${speed}x" | |
for f in *.mp3 | |
do ffmpeg -i "$f" -filter:a "atempo=${speed}" "./speed-${speed}x/$f" | |
done |
OlderNewer