JYPDWhite

Untitled

Feb 2nd, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.90 KB | None | 0 0
  1. ###restore.sh###
  2. cat passwd.move >> /etc/passwd
  3. cat shadow.move >> /etc/shadow
  4. cat group.move >> /etc/group
  5. cat gshadow.move >> /etc/gshadow
  6.  
  7. cp -b -a  ../../home /
  8.  
  9.  
  10. cp -b -a ../../etc/apache2 /etc/
  11. cp -b -a ../../etc/apt /etc/
  12. cp -b -a ../../etc/apticron /etc/
  13. cp -b -a ../../etc/cron* /etc/
  14. cp -b -a ../../etc/dovecot /etc/
  15. cp -b -a ../../etc/exim4 /etc/
  16. cp -b -a ../../etc/hostname /etc/
  17. cp -b -a ../../etc/icecast2 /etc/
  18. cp -b -a ../../etc/logwatch /etc/
  19. cp -b -a ../../etc/mailman /etc/
  20. cp -b -a ../../etc/mysql /etc/
  21. cp -b -a ../../etc/openvpn /etc/
  22. cp -b -a ../../etc/spamassassin /etc/
  23. cp -b -a ../../etc/ssh/sshd_config /etc/
  24. cp -b -a ../../etc/ssl /etc/
  25. cp -b -a ../../etc/sudoers /etc/
  26. cp -b -a ../../etc/sudoers.d /etc/
  27.  
  28. apt-get update
  29.  
  30. xargs -a "packages.list.save" apt-get install
  31. xargs -a "package-states-auto" apt-mark auto
  32. xargs -a "package-states-manual" apt-mark manual
Advertisement
Add Comment
Please, Sign In to add comment