shutdown57

WordOps Backup DB ONly

Oct 9th, 2025
532
0
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. #!/bin/bash
  2. # -----------------------------------------------
  3. # WordPress DB + wp-config.php backup per domain
  4. # by ChatGPT
  5. # -----------------------------------------------
  6.  
  7. BACKUP_ROOT="$HOME/backup"
  8. DATE=$(date +%Y%m%d_%H%M%S)
  9.  
  10. # Pastikan folder backup root ada
  11. mkdir -p "$BACKUP_ROOT"
  12.  
  13. # Loop semua domain yang punya wp-config.php
  14. for WPCONFIG in /var/www/*/wp-config.php; do
  15.     [ -f "$WPCONFIG" ] || continue
  16.  
  17.     DOMAIN=$(basename "$(dirname "$WPCONFIG")")
  18.     DEST="$BACKUP_ROOT/$DOMAIN"
  19.     mkdir -p "$DEST"
  20.  
  21.     echo "🔹 Backup domain: $DOMAIN"
  22.  
  23.     # Ambil credential dari wp-config.php
  24.     DB_NAME=$(grep "DB_NAME" "$WPCONFIG" | cut -d "'" -f 4)
  25.     DB_USER=$(grep "DB_USER" "$WPCONFIG" | cut -d "'" -f 4)
  26.     DB_PASS=$(grep "DB_PASSWORD" "$WPCONFIG" | cut -d "'" -f 4)
  27.     DB_HOST=$(grep "DB_HOST" "$WPCONFIG" | cut -d "'" -f 4)
  28.  
  29.     # Nama file backup
  30.     SQL_FILE="$DEST/db_${DB_NAME}_${DATE}.sql"
  31.     CONFIG_FILE="$DEST/wp-config_${DATE}.php"
  32.  
  33.     # Backup database
  34.     echo "  ➤ Dumping database: $DB_NAME"
  35.     mysqldump -h "$DB_HOST" -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" > "$SQL_FILE" 2>/dev/null
  36.  
  37.     if [ $? -eq 0 ]; then
  38.         echo "  ✅ DB backup done: $SQL_FILE"
  39.     else
  40.         echo "  ❌ ERROR: Gagal dump database $DB_NAME"
  41.         rm -f "$SQL_FILE"
  42.     fi
  43.  
  44.     # Backup wp-config.php
  45.     cp "$WPCONFIG" "$CONFIG_FILE"
  46.     echo "  ✅ Config backup done: $CONFIG_FILE"
  47.     echo "-----------------------------------------------"
  48. done
  49.  
  50. echo "🎉 Semua backup selesai! Lokasi: $BACKUP_ROOT"
  51.  
Advertisement
Comments
  • User was banned
  • Zaryulon
    109 days
    # CSS 0.83 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1S1iTruSLkgEPO8QtTuo2twS4f2FoJ3_l0-p4GKqeAUY/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification).
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment