var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Using the Tar command
Is it possible to tar up the public_html directory using ssh?
Also what would the command line be?
I figured then I could just point my browser to the tar file and download the file. Also by doing this would the site not be viewable?
Sorry these are such dumb questions
It would be something like this:
tar cvf filename.tar public_html
You can then download that file via ftp.
Or if you want it compressed, you can use tar zcvf filename.tgz /home/username/public_html/*
But will it tar everthing up and make the site unviewable? Or does it make a copy of everything?
Thanks again for your replies
It doesnt delete anything. Just make sure you have the hd space allocation available and use the previously mentioned commands.
I would guess to untar it would be
untar zcfv filename.tgz public_html
Or is it a different command all together?
replace the c with an x
tar zxvf filename
tar xvf filename.tar
that will extract your files, depending on where you are at the time within your site.
tar gz it its better for zipping dir's
For what is that command
May I ask?
Here's a really zany command
It actually tells you most of this thread. Crazy!!
Hang on... a VERY important note.
Make sure that the "tarball" (the file that tar outputs) is NOT in the directory/directories that you archive, otherwise you get into an infinite loop, and will fill up your disk pretty quickly.
Essentially, if you're backing up public_html, make sure you're not in public_html, or a subdirectory of it. I strongly suggest including the "z" option in order to compress the files.