Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###restore.sh###
- cat passwd.move >> /etc/passwd
- cat shadow.move >> /etc/shadow
- cat group.move >> /etc/group
- cat gshadow.move >> /etc/gshadow
- cp -b -a ../../home /
- cp -b -a ../../etc/apache2 /etc/
- cp -b -a ../../etc/apt /etc/
- cp -b -a ../../etc/apticron /etc/
- cp -b -a ../../etc/cron* /etc/
- cp -b -a ../../etc/dovecot /etc/
- cp -b -a ../../etc/exim4 /etc/
- cp -b -a ../../etc/hostname /etc/
- cp -b -a ../../etc/icecast2 /etc/
- cp -b -a ../../etc/logwatch /etc/
- cp -b -a ../../etc/mailman /etc/
- cp -b -a ../../etc/mysql /etc/
- cp -b -a ../../etc/openvpn /etc/
- cp -b -a ../../etc/spamassassin /etc/
- cp -b -a ../../etc/ssh/sshd_config /etc/
- cp -b -a ../../etc/ssl /etc/
- cp -b -a ../../etc/sudoers /etc/
- cp -b -a ../../etc/sudoers.d /etc/
- apt-get update
- xargs -a "packages.list.save" apt-get install
- xargs -a "package-states-auto" apt-mark auto
- xargs -a "package-states-manual" apt-mark manual
Advertisement
Add Comment
Please, Sign In to add comment