|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Newbie :: Very Easy Question- Creating a zip/tar file
Hello there,
I feel so stupid asking this question, but I would like to know what commands I need to type to get my FreeBSD system to create a recursive zip/tar file... I need to create the zip/tar file on the system them FTP and unzip with the directory structure onto a windows machine.... Can someone please help me?? Cheers |
|
#2
|
|||
|
|||
|
Just cd to the parent dir where you want its dir tree to be tar'ed up then issue this command:
To tar up /var/log, for example: cd /var tar zfc backup.tar.gz log To create zip archive you need to install /usr/ports/archivers/zip. BTW, you do not need to specify Newbie :: Very Easy Question- in your subject. You'd get flamed (especially by me) if you do this in other forums. |
|
#3
|
||||
|
||||
|
Hey there thanks for that.....
What option would I use on a solarus box? tried the tar zfc backup.tar.gz log But it does not like the z option... would you know what to use there? |
|
#4
|
|||
|
|||
|
Sorry I don't run Solaris so you will have to RTFM on man 1 tar to find out the equivalent.
|
|
#5
|
||||
|
||||
|
Quote:
Perhaps you need to pipe the output from the tar command to a gzip command? I'm no sysadmin, but maybe something like: Code:
tar cvf log | gzip > backup.tar.gz Don't blame me if this doesn't work - backup first! Also search the web, especially google.com (cf http://www.google.com/search?source...gz+solaris+unix).
__________________
FreeBSD Admin Tips Tricks and Scripts |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Newbie :: Very Easy Question- Creating a zip/tar file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|