restore.sh 861 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. red='\e[1;31m'
  3. green='\e[0;32m'
  4. NC='\e[0m'
  5. MYIP=$(wget -qO- https://icanhazip.com);
  6. echo "Checking VPS"
  7. echo "This Feature Can Only Be Used According To Vps Data With This Autoscript"
  8. echo "Please input link to your vps data backup file."
  9. echo "You can check it on your email if you run backup data vps before."
  10. read -rp "Link File: " -e url
  11. wget -O backup.zip "$url"
  12. unzip backup.zip
  13. rm -f backup.zip
  14. sleep 1
  15. echo Start Restore
  16. cd /root/backup
  17. cp passwd /etc/
  18. cp group /etc/
  19. cp shadow /etc/
  20. cp gshadow /etc/
  21. cp -r wireguard /etc/
  22. cp chap-secrets /etc/ppp/
  23. cp passwd1 /etc/ipsec.d/passwd
  24. cp ss.conf /etc/shadowsocks-libev/ss.conf
  25. cp -r premium-script /var/lib/
  26. cp -r sstp /home/
  27. cp -r trojan /etc/
  28. cp -r v2ray /etc/
  29. cp -r shadowsocksr /usr/local/
  30. cp -r public_html /home/vps/
  31. strt
  32. rm -rf /root/backup
  33. rm -f backup.zip
  34. clear
  35. figlet -c Done | lolcat