mousepotatoe

Active Member
Dec 17, 2003
36
0
156
Hello, thank you in advance for your help.

In dealing with a client who is using the virtual file server (/home/virtfs/username)
I wanted to delete his files. I soon discovered in his folder was MY /bin folder so i crashed my server. The primary drive has been mounted now as slave, and the new apache/whm is loaded and security has been applied. Now i need to restore my data from the olddrive.

I plan to use the following commands via ssh.

Anything I am missing? do you see what problems if any may arise with this plan?

Thanks again!

Steve


cp -rf /olddrive/etc/named.conf /etc/named.conf
cp -rf /olddrive/etc/proftpd.conf /etc/proftpd.conf
cp -rf /olddrive/etc/localdomains /etc/localdomains
cp -rf /olddrive/etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf
cp -rf /olddrive/usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf
cp -rf /olddrive/etc/group /etc/group
cp -rf /olddrive/etc/shadow /etc/shadow
cp -rf /olddrive/etc/passwd /etc/passwd
cp -rf /olddrive/etc/domainalias /etc/domainalias
cp -rf /olddrive/etc/fstab /etc/fstab
cp -rf /olddrive/root/.my.cnf /root/.my.cnf
cp -rf /olddrive/etc/ips /etc/ips
cp -rf /olddrive/etc/reservedips /etc/reservedips
cp -rf /olddrive/etc/quota.conf /etc/quota.conf
cp -rf /olddrive/etc/wwwacct.conf /etc/wwwacct.conf
cp -rf /olddrive/etc/domainalias /etc/domainalias
cp -rf /olddrive/etc/fstab /etc/fstab
cp -rf /olddrive/root/.my.cnf /root/.my.cnf
cp -rf /olddrive/etc/ips /etc/ips
cp -rf /olddrive/etc/reservedips /etc/reservedips
cp -rf /olddrive/etc/quota.conf /etc/quota.conf
cp -rf /olddrive/etc/wwwacct.conf /etc/wwwacct.conf
cp -rf /olddrive/etc/rndc.conf /etc/rndc.conf
cp -rf /olddrive/etc/secondarymx /etc/secondarymx
cp -rf /olddrive/etc/my.cnf /etc/my.cnf
cp -rf /olddrive/usr/local/cpanel/3rdparty/interchange/interchange.cfg /usr/local/cpanel/3rdparty/interchange/interchange.cfg
cp -rf /olddrive/etc/userdomains /etc/userdomains
cp -rf /olddrive/etc/valiases /etc/valiases
cp -rf /olddrive/etc/proftpd /etc/proftpd
cp -rf /olddrive/var/named /var/named
cp -rf /olddrive/etc/vfilters /etc/vfilters
cp -rf /olddrive/var/cpanel /var/cpanel
cp -rf /olddrive/var/spool/cron /var/spool/cron
cp -rf /olddrive/usr/local/frontpage /usr/local/frontpage
cp -rf /olddrive/var/log/bandwidth /var/log/bandwidth
cp -rf /olddrive/var/lib/mysql /var/lib/mysql
cp -rf /olddrive/usr/share/ssl /usr/share/ssl
cp -rf /olddrive/etc/ssl /etc/ssl
cp -rf /olddrive/var/ssl /var/ssl
cp -rf /olddrive/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty/mailman
cp -rf /olddrive/home /home
cp -rf /olddrive/usr/local/cpanel/base /usr/local/cpanel/base
cp -rf /olddrive/usr/local/frontpage /usr/local/frontpage
cp -rf /olddrive/var/named /var/named