raylin
04-12-2001, 02:19 AM
I have backuped my site to a .raq file which was saved on another UNIX machine.
Did anybody have restored a .raq file from shell as root instead within Admin Control Panel.
Would you tell me how to do this (exactly linux command)
Thanks a lot,
cperciva
04-12-2001, 02:42 AM
Once you remove the headers, it's a .tgz file.
raylin
04-12-2001, 08:53 AM
Because I am not quite familiar with Linux commands. Can you suggest me how to process this kind of file?
iplexx
04-13-2001, 03:33 AM
if you have windows avaible beside your linux system(s):
rename the .raq file to .tgz and open/extract it with powerarchiver (http://www.powerarchiver.com/)
raylin
04-14-2001, 02:38 AM
iplexx,
Thanks for your input.
But I found my way to fix this. I list my steps here:
1 upload my "www.mysite.com_site_date_time.raq" file
to /home/sites/home/users/admin directory
2 login as root to my server
3 for convinience, rename "www.mysite.com_site_date.raq":
cd /home/sites/home/users/admin
mv www.mysite.com_site_date_time.raq site.raq
4 cd /home/tmp
5 mkdir untar
6 cd untar
7 wget http://www.notnet.co.uk/cobalt/strip.txt
8 mv strip.txt strip.pl
9 chmod 700 strip.pl
10 ./strip.pl site.raq site.tar.gz
11 tar -xzf site.tar.gz
site.tar.gz will be untar-ed into 2 directories:
/home/tmp/untar/home and
/home/tmp/untar/var
12 cd /home/tmp/untar/home/sites/siteXX/web
13 chown -R myuname *
14 chgrp -R mysiteYY *
15 backup /home/sites/siteYY/web/* to somewhere for safe
16 cp -R * /home/sites/siteYY/web
There were some files under /home/tmp/untar/var
directory but I didn't restore.