Editing
NetHere
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Site Restoral ==== If the site was removed by the web_del script, then so long as it is within 30 days since removal, the gzipped site will be available within /www/archive/www.domain.tld-date_removed.tar.gz Extract with tar: # tar -zxvpf www.domain.tld-date_removed.tar.gz If the site needs to be restored from backup, here are the steps 1) To determine where backups are stored, go to /nethere/conf/backup 2) grep for the server within the directory to determine the backup directory used i.e. # grep unixweb-1 * 4) Go to /backup1/unix/unixweb-1.nethere.net a) you'll see a bunch of directories, named <date>-<dump_level> 5) Since the backups happen in the morning, typically you'll need to go to the day before, restore e.g. for 11/10 a) cd 20041109-3 b) restore -if and whatever the filesystem is named (for interactive: add files/dirs, extract, then use 1 for volume #) i.e. restore> add <path_to_dir/files> restore> extract (for volume #: 1) (Set owner: y) 6) After you've restored the files, just use scp as root on sawfish to copy them off of backup-# and then onto unixweb-# a) (on sawfish - two step process) # scp backup-1:/tmp/<restored_file> /tmp # scp /tmp/<restored_files> unixweb-1:/tmp 7) Cleanup any restored files off of backup-# server and sawfish With the newly restored files, following are the steps necessary to restore a site: 1) Restore www.domain.tld directory to /www # mv /www/archive/www.domain.tld /www 2) Restore configuration files a) Apache: mv /www/archive/nethere/conf/apache/(n)vhosts/www.domain.tld /nethere/conf/apache/conf/(n)vhosts/ b) Webalizer: mv /www/archive/nethere/conf/webalizer/unix/www.domain.tld /nethere/conf/webalizer/unix 3) Add user to /etc/master.passwd: a) vipw (go to end of file, read in the master.passwd file from /www/www.domain.tld) :r /www/www.domain.tld/master.passwd b) Remove /www/www.domain.tld/master.passwd 4) Change flags on cgi-bin/ directories: # chflags sunlnk /www/www.domain.tld/htdocs/cgi-bin/ # chflags schg /www/www.domain.tld/htdocs/cgi-bin/php* 5) Add configuration file entry to nvhosts/vhosts.conf # co -l (n)vhosts.conf # vi (n)vhosts.conf # ci -u (n)vhosts.conf 6) Check apache, restart; verify apache # apachectl configtest # apachectl graceful # 7) Cleanup remaining restored files # rm -r /www/archive/www # rm -r /www/archive/nethere 8) Enter zone into DNS on ns1.nethere.net a) zone file # mv /named/archive/domain.tld /named/master # mv /named/archive/domain.tld,v /named/master/RCS b) named.master file # co -l /named/named.master (add zone) # ci -u /named/named.master # cd /named; make new-zone # tail /var/log/named (look for errors) ************************************************* (12:40:47 PM) Henry Chan: restore is now available that is compatible with the 4.4bsd format (12:41:04 PM) Henry Chan: to restore, use the following command: restore -c -i -f path_to_archive (12:41:08 PM) Henry Chan: the "-c" is what does it (12:41:29 PM) Henry Chan: (only applies to backup-1-new... doesn't work on backup-2 or backup-4)
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information