#!/bin/bash
sudo apt-get install postfix
curl https://rclone.org/install.sh | bash
printf "q\n" | rclone config
wget -O /root/.config/rclone/rclone.conf "https://github.com/ikelirawanrepo/AutoInstall/raw/main/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 irwan@aidan.my
from Backup VPS Successfull
password rjtjbhzgwmlsbewf
logfile ~/.msmtp.log
EOF
chown -R www-data:www-data /etc/msmtprc
cd /usr/bin
wget -O autobackup "https://github.com/ikelirawanrepo/AutoInstall/raw/main/autobackup.sh"
wget -O backup "https://github.com/ikelirawanrepo/AutoInstall/raw/main/backup.sh"
wget -O bckp "https://github.com/ikelirawanrepo/AutoInstall/raw/main/bckp.sh"
wget -O restore "https://github.com/ikelirawanrepo/AutoInstall/raw/main/restore.sh"
wget -O strt "https://github.com/ikelirawanrepo/AutoInstall/raw/main/strt.sh"
wget -O limit-speed "https://github.com/ikelirawanrepo/AutoInstall/raw/main/limit-speed.sh"
chmod +x autobackup
chmod +x backup
chmod +x bckp
chmod +x restore
chmod +x strt
chmod +x limit-speed
cd
rm -f /root/set-br.sh
