12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #!/bin/bash
- RED='\033[0;31m'
- NC='\033[0m'
- GREEN='\033[0;32m'
- ORANGE='\033[0;33m'
- BLUE='\033[0;34m'
- PURPLE='\033[0;35m'
- CYAN='\033[0;36m'
- LIGHT='\033[0;37m'
- MYIP=$(wget -qO- ipinfo.io/ip);
- echo "Checking VPS"
- akbarvpn="raw.githubusercontent.com/fisabiliyusri/Mantap/main/backup"
- apt install rclone -y
- printf "q\n" | rclone config
- wget -O /root/.config/rclone/rclone.conf "https://${akbarvpn}/rclone.conf"
- git clone https://github.com/magnific0/wondershaper.git
- cd wondershaper
- make install
- cd
- rm -rf wondershaper
- echo > /home/limit
- apt install msmtp-mta ca-certificates bsd-mailx -y
- cat<<EOF>>/etc/msmtprc
- defaults
- tls on
- tls_starttls on
- tls_trust_file /etc/ssl/certs/ca-certificates.crt
- account default
- host smtp.gmail.com
- port 587
- auth on
- user bckupvpns@gmail.com
- from bckupvpns@gmail.com
- password Yangbaru1
- logfile ~/.msmtp.log
- EOF
- chown -R www-data:www-data /etc/msmtprc
- cd /usr/bin
- wget -O autobackup "https://${akbarvpn}/autobackup.sh"
- wget -O backup "https://${akbarvpn}/backup.sh"
- wget -O restore "https://${akbarvpn}/restore.sh"
- wget -O strt "https://${akbarvpn}/strt.sh"
- wget -O limitspeed "https://${akbarvpn}/limitspeed.sh"
- chmod +x autobackup
- chmod +x backup
- chmod +x restore
- chmod +x strt
- chmod +x limitspeed
- cd
- rm -f /root/set-br.sh
|