restore.sh 628 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. read -rp "Link File: " -e url
  3. wget -O backup.zip "$url"
  4. unzip backup.zip
  5. rm -f backup.zip
  6. sleep 1
  7. echo Start Restore
  8. cd /root/backup
  9. cp passwd /etc/
  10. cp group /etc/
  11. cp shadow /etc/
  12. cp gshadow /etc/
  13. cp -r wireguard /etc/
  14. cp chap-secrets /etc/ppp/
  15. cp passwd1 /etc/ipsec.d/passwd
  16. cp ss.conf /etc/shadowsocks-libev/ss.conf
  17. cp -r crot-script /var/lib/
  18. cp -r /var/lib/crot-script/ipvps.conf
  19. cp -r /var/lib/premium-script/ipvps.conf
  20. cp -r /etc/v2ray/domain
  21. cp -r sstp /home/
  22. cp -r trojan /etc/
  23. cp -r v2ray /etc/
  24. cp -r shadowsocksr /usr/local/
  25. cp -r public_html /home/vps/
  26. strt
  27. rm -rf /root/backup
  28. rm -f backup.zip
  29. echo Done