nonner
1-28-03, 02:42 PM
Hi All,
Has anyone backed up directories and it's content? How do you do it?
I've been using an html shell program to gain shell access for some housekeeping tasks. I have a need to backup a large directory so I can delete it.
Problem I get process killed! Seems to be a timeout issue cause it's a big directory I think??. The resulting tar file is 32meg+ but it's currupt because of the killed process.
here's my command:
For example, to archive a directory named "project", I use the commands below:
cd project
tar clf - . | compress > ../project.tar.Z
cd ..
rm -r project (-r removes all subdirectories, it stands for recursive)
Note that we are saving the archive in the parent directory (../project.tar.Z) so that `tar' won't try to archive its own archive!!. Also, note that, once archived, the original directory is removed.
to UNTAR and install all subdirectories I use:
tar -zxvf [filename with all extensions]
Any help is appreciated,
nonner
Has anyone backed up directories and it's content? How do you do it?
I've been using an html shell program to gain shell access for some housekeeping tasks. I have a need to backup a large directory so I can delete it.
Problem I get process killed! Seems to be a timeout issue cause it's a big directory I think??. The resulting tar file is 32meg+ but it's currupt because of the killed process.
here's my command:
For example, to archive a directory named "project", I use the commands below:
cd project
tar clf - . | compress > ../project.tar.Z
cd ..
rm -r project (-r removes all subdirectories, it stands for recursive)
Note that we are saving the archive in the parent directory (../project.tar.Z) so that `tar' won't try to archive its own archive!!. Also, note that, once archived, the original directory is removed.
to UNTAR and install all subdirectories I use:
tar -zxvf [filename with all extensions]
Any help is appreciated,
nonner