Web Hosting Talk







View Full Version : Can this be done and how?!


LoganNZ
09-22-2004, 05:55 AM
ok,

This needs to be done.

I need to make a tar.gz of a /home dir.

How can i do this, and with what commands?

Thanks

kerneldump
09-22-2004, 06:07 AM
If you have shell access just type

tar cvf backup.tar /home

then

gzip backup.tar

If you dont have shell access then you will need to FTP the files back to your PC and zip them from there.

K.

LoganNZ
09-22-2004, 06:14 AM
thanks peeps, i just learnt some thing new :D

its tar cxvf file.tar.gz /dir

:D

Thanks again

naguib2000
09-22-2004, 08:02 AM
there is no command called tar cxvf !!!!
it can be tar cvf
or tar xvf

it cannot be tar cxvf (c and x at the same time) !!!
c means create
and x means extract

SmartActive
09-22-2004, 09:37 AM
czf will work fine .

also you have to change the owner & the group of the folder .

chown user.user folder/

also change the owner of the tar.gz file and move it to this user account and download it from there .

thnx