|
Server IP : 2a02:4780:11:1373:0:3017:be17:10 / Your IP : 216.73.216.55 Web Server : LiteSpeed System : Linux in-mum-web1273.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u806862359 ( 806862359) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u806862359/domains/../autorestore/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
#!/bin/bash
DOMAINS=(
"dgmamcgadag.org.in"
"sresfgckalloli.com"
"bcnpolytechnic.com"
"dbhpsmedcollegedwr.org"
"svtrssjvvs.org"
"ksoeeb.org.in"
"vishnusociety.in"
"racckamatagi.org"
"metinursing.org"
"pbacbse.org"
"sbscopgadag.in"
"smscollegearabhavimath.com"
"dbhpsmedcollegedwr.org"
"tea-dedcollege.org"
"thepowerofsixthsense.com"
"vishnusociety.in"
"gloajus.com"
"jssitep.in"
"vemanvvshubli.org"
)
BASE="/home/u806862359/domains"
BACKUP="/home/u806862359/autorestore/cleanfiles"
for domain in "${DOMAINS[@]}"; do
TARGET="$BASE/$domain/public_html/index.php"
ORIGINAL="$BACKUP/${domain}_index.php"
if [ ! -f "$ORIGINAL" ]; then
echo "$(date) - Missing clean file for $domain"
continue
fi
if [ ! -f "$TARGET" ] || [ $(stat -c%s "$TARGET") -lt 1000 ]; then
cp "$ORIGINAL" "$TARGET"
chmod 644 "$TARGET"
echo "$(date) - Restored $domain"
fi
done