How do i gzip an entire folder

Hi All,
I have a requirement where i need to create a gz file containing a complete folder hierarchy. That is, i have a folder which contains some other folders and some files. I want to create a gz file for the root folder along with its contents. can anyone suggest me a method how i can do this?
Thanks and regards,
Rajat Aggarwal

gzip, not zip.
Anyway, @OP:
1. Gzip does not support compressing entire folder hierarchies. However, Tar does. (See 2)
2. Since you do not state that the requirement must be met with Java code, I'd personally use something like this, on Unix derivatives:
#!/bin/sh
tar czf backup-`date +%Y%m%d`.tar.gz /path/to/folders

Similar Messages

  • How do you "unsync an entire folder?

    I tried to apply a preset to a folder but every time I change one image all images change.  How do I "unsync" an entire folder?  I tried Ctl/CmnA and it didn't work.  Help!

    I suspect that you have multiple images highlighted, and auto-sync activated. Turn off auto-sync and make sure you only have one image highlighted. The switch to turn off auto-sync is located here:

  • How can I passcode an entire folder?

    I Want to passcode an entire folder instead of each individual  item in the folder.  Is this possible?

    Ken,
    Are you with Adobe or just a helpful knowlegable user?
    Assuming your with Adobe:
    It would be nice if I coud set up individual folders and be able to restrict access to each. 
    What I woul,d do is create a folder and give a customer access information and a password that would allow them to see  and possibly download images they had access to.
    Any chance that might be part of the plan?  Or is theer another Adobe product that will do that?
    I know I could do it with Shutterfly and similar products but depending how easy it would be to set up each folder wothin Adobe Cloud, that could be attractive.
    Thanks
    Dunc

  • HT204394 How can I forward an entire folder?

    I am trying to forward an entire folder with about 12 emails.  How can I do this?

    This will work:
    1 - select all of the emails in the folder.
    2 - go to the Message menu and select "Forward as Attachment".
    3 - enter the recipient's address and send.
    The recipient will get an email like this:
    Just click on each emi icon and the email will be opened.
    OT

  • How set sharing on an entire folder

    Is there anyway to set sharing on an entire folder's contents. When you set sharing on a top folder, it does NOT set sharing on any folders within it. This terribly inconvenient to have to go to every folder and subfolders to make them sharing.
    Please tell me there is a way to set ALL subfolders down the tree in a folder to sharing!

    Barney, thanks.
    The folder in question is a web development folder...htdocs.This folder basically houses all the websites that I work on, each subfolder is a website. These reside on my iMac in my office and I wanted to copy them across the network to my MacBook Pro. Even though I connect to my Mac with my user name, it won't let me copy these files to my MBP, which I thought was strange, seeing that I have access to all levels of those files natively sitting in front of my iMac. So I set out to "share" everything so I could copy it to my MBP. :
    htdocs
    |----------ABC Company Website
    |----------List of files
    |----------Images
    |---------list of images
    |----------XYZ Company Website
    The ABC folder has files and a subfolder for say, images, and one for Admin. The XYZ folder might be similarly structured with more files and more subfolders.
    So what I wanted to do was go to the ABC Folder, set it as shared and hope everything under it would get shared also.
    First, I just right clicked ABC and clicked Get Info, and then clicked Shared Folder. That shared the folder and its files, but not the subfolder Images. I had to go in and set THAT folder to be shared also. Once ALL subfolders were set to "share" I was able to copy the ABC Folder to my MBP
    The problem is that I have 50 websites with varying numbers of levels. Going one by one is a pain.
    So that's why I wanted to "share all levels" of a top folder.
    I DID try right clicking ABC, clicking Get Info, then setting Read and Write on the ABC folder (unlocking and authenticating). Then I DID click the Apply to all levels option. But this didn't result in sharing or allowing me to copy.
    Finally I went to the terminal and issued a sudo chmod -R * 777 in hopes that it changed ALL the permissions to full read/write/execute. This ALSO didn't allow me to copy from my mac to the MBP.
    ONLY setting EACH folder to "Shared" allowed me to do this.
    OSX seems a bit different than Linux in the way the -R works I guess.
    So, with all that, maybe you can figure out what I need to do?
    Thanks.

  • How do I email an entire file?

    How do I email an entire folder, not just an individual file?  I want to eamil the entire file and not have to email each file individually.  Does anyone know?

    You cannot share a folder yet, just files. Folder sharing is a feature we are working on. You can read more in this blog post http://blogs.adobe.com/creativecloud/coming-soon-to-creative-cloud/.

  • How do I upload the entire Edge Animate folder to the cloud?

    How do I upload the entire Edge Animate folder to the cloud?

    Hi there,
      Are you talking about the Creative Cloud? If so, you can compress the Edge Animate files into one folder as a .zip file, and then upload the entire .zip file by clicking the Upload button on Creative Cloud:
    I hope this helps! Let me know if you need further clarification! : )

  • How can I add an entire music folder to my library on the new iTunes?

    When I click on the little box on the upper left corner, the only adding option I see is "Add File to Library", and what I want to do is add the entire folder in which I keep all my music.

    You can drag a folder in as before, or turn on the menu bar with Ctrl-b, or make it appear temporarily with Alt.
    tt2

  • How can I delete my entire History file, without doing it one site at a time?

    I am able to delete a given site in my History file by right-clicking on it and indicating to delete it. How do I erase the entire file when it is no longer of any use to me?

    You can delete the places.sqlite file to remove all history.
    Firefox will use the most recent JSON backup in the bookmarkbackups folder to rebuild the bookmarks.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • How do I recover a "complete" folder and place it back onto the desktop screen.

    This has to be a common problem experienced by all Mac desktop users.  I placed
    an entire blue "file folder" (the common blue folders with tab) into the "trash" and
    cannot take it out or delete it.  I did it by accident because I wanted to "delete" a small
    file, within the "entire blue folder".  Apparently I put the "whole folder" in the "trash" instead
    and now cannot take it out.
    I have an exact copy on my desktop already, but I don't want to delete this folder that I
    placed in the "trash".  For now, I just want to recover it and put it back onto the desktop.
    I don't mind having two copies for now.
    To be extra clear, this is the usual blue "file folder" that contains "favorites", "shared", and "devices".
    Within these are "all my files", "desktop", "your personal files", "applications", etc., etc.
    Within these are "photos", "albums", "pictures", "video", and miscellaneous subsets of files.
    This "entire" folder containing all these items are now in the trash.
    I need to know a simple "step by step" process or instructions on how to take all this
    out of the trash and to put it back on the desktop where I can see it on my computer screen
    as a blue "file folder".
    I'm not very computer knowledgeable except to use the internet and knowing how to use
    data entry software.
    So it would be important to explain to me "step by step".  Any small detail left out and I might mess up.
    I know there must be a simple way of doing this.  All I see now is a pile of papers in the "trash" bin and
    no way to get out my "file folder"
    I appreciate all your help.
    Thank you very much.

    You cannot take a folder out of the Trash to your Desktop without erasing the one on the Desktop. You need to first change the name of the folder on the Desktop. Or you can open the folder that's in the Trash and drag the files onto the Desktop assuming there aren't too many of them.
    But if you have a duplicate on the Desktop why do you need to remove the one that's in the Trash?
    If you feel you must take the folder out of the Trash, then you need to rename the duplicate that's on your Desktop.
    If you wish to put the folder back where it was when you deleted it, then open the Trash window, select the folder, then CTRL- or RIGHT-click and select "Put Back" from the context menu.

  • In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded l so I have created two new libraries, but can't seem to move the projects into them

    In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded, so I have created two new libraries, but can't seem to move the projects into them?

    Hello Annabel,
    To move entire projects export them as Aperture Libraries, and then import those Libraries into the other Aperture Library:
    Select the Project in the Inspector, then
    File -> Export -> Project as Library
    In the other Library do:
    File -> Import  -> Library/ Project
    But I am not quite convinced, that the size of your current Aperture Library is responsible for the slowness of Aperture - Aperture is designed to cope with huge libraries.
    You may want to post your hardware setup and details of your library, and some of the hardware experts here may help you to find the reason for the slowness.
    A huge library should only be a problem, if the projects are too big, and if you have many, many smart albums at the root level of your library.
    So keep the projects small, and try to move some of your smart albums to lower levels in your folder structure (then Aperture does not need to scan all of your images to build the smart album).
    Other reasons for Aperture's slowness may be, e.g.
    An overfull system drive and/or external drive (keep at least 20% of your drives empty)
    lack of RAM
    a corrupted Aperture Library, that needs repairing
    Have you checked those options, before you split your library? It would be a pity to split it, for you would loose the ability to browse all parts at the same time, to use all your images in the Media Browser, etc.
    Regards
    Léonie

  • HT4913 How do you download the entire library from match to a new computer?

    How do you download the entire library from iTunes Match to a new computer?

    Download each song individually.
    Or the faster method is to COPY the ENTIRE iTunes folder from the old computer or the backup of the old computer to the new computer.

  • How to Have a separate Users Folder on a separate partition

    I've successfully installed Mac OS X 10.5 on the 20g partition of my 200gb HD (the other "blank" partition is 180gb). Great, so installation went smoothly.
    The 20gb partition is named "sys".
    The 180gb partition is named "root".
    My dilemma, however, is that I want to have my folder (/users/username) on the 180gb parition (root) and keep ALL of apple's core system software and even all apple applications on the "sys" partition (where it is already installed).
    Without the use of aliases, how can I have my user folder entirely on the "root" partition and all other mac software on the "sys" partition?
    Thanks I sincerely appreciate any help in this matter as it would organize my file hierarchy immensely. Thanks

    dstempfley wrote:
    Speaking from a strong unix background and some admittedly limited Mac OS admin experience. I found another discussion:
    http://discussions.apple.com/thread.jspa?messageID=5820852&tstart=0
    The last two messages in the thread seem to be where the meat is. According to this you edit the fstab using vifs and add a mountpoint for /Users.
    The thread suggests that you can put a random UUID, I'm not sure if I'd try that. I found the UUID for the partition using disk utility, Ctrl-Click the partition and open up the Information menu. The UUID is in the list.
    Also you need to copy over the users from the existing /Users directory structure. The following thread discusses using rsync (the preferred method).
    http://julipedia.blogspot.com/2007/01/install-mac-os-x-over-multiple-volumes.htm l
    The thread also gives more information about the problem your trying to solve. I don't think it gets the fstab entries right for Max OS X. But you can try both methods and see which works best.
    Hope it helps,
    /Dion
    dstempfley,
    After perusing
    http://discussions.apple.com/thread.jspa?messageID=5820852&tstart=0
    a bit, it appears as though I'll have to directly change the /etc/fstab file and insert references to the disk partitions without the use of labels.
    Seeing as I want to solve this partition /users folder problem as well as further my knowledge of unix commands, anyone know any good references for deciphering what all the unix commands mean and what the acronyms stand for so I can understand, as well as apply, the commands? "man" is the only thing that comes to mind, and that is actually pretty extensive so I'll stick with that.
    As for solving this..
    "df -h" revealed
    /dev/disk0s2 20Gi 11Gi 9.2Gi 54% /
    /dev/disk0s3 166Gi 108Mi 166Gi 1% /Volumes/root
    I'm aware line 1 = "sys" and line 2 = "root", but how and where do I apply the "/dev/disk0s2" versus "/" or "/dev/disk0s3" or "/Volumes/root"?
    I think I'm going to want to mount the physical partition of /dev/disk0s3 to "/users/username" if that's possible.
    I tried changing the home dir to
    /volumes/root
    /dev/disk0s3
    and even
    /volumes/root/users/username
    but it still doesn't recognize anything other than the /users/username folder on "sys" as "home folder".
    Also, I can access /etc/fstab.hd using cd and ls -al commands but I forget how to open and edit the file.
    http://www.linuxfocus.org/English/September2004/article349.shtml
    seems to answer some core unix structure questions I'm engaging.
    From
    http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/972007530931/inc /-1
    it appears that symbolic links arent' the way to go either.
    http://macosx.com/forums/unix-x11/19249-changing-mount-point-volume.html
    shows someone trying to mount an external drive in the home directory.
    Also where is fstab (not fstab.hd)?? only fstab.hd shows up in /etc with the "ls -al" command.
    A very advanced discussion on creating a customized mountpoint system is detailed here
    http://www.macosxhints.com/article.php?story=20021011053443661.
    This article on creating a dynamic fstab file with user ids could be useful, too:
    http://www.macosxhints.com/article.php?story=20030227194830916
    This article targets creating a home folder on a seperate partition:
    http://forums.macrumors.com/showthread.php?t=116491&highlight=moveuserpartition.
    Where wrldwzrd89's post details the process, but users a symbolic link.
    Jeez, with all the long convoluted forum postings on people trying to accomplish the same objective as I'm doing, you'd think apple would make this easier to do; loading your home folder on a seperate partition isn't "that" advanced of a preference! lol.
    This is as of yet still unresolved.

  • I lost everything in my iphoto library how can i restore the entire library with time machine?

    i lost everything in my iphoto library how can i restore the entire library with time machine? help!!!!

    Open the folder that contained the library and then enter Time Machine.  Select the most recent date that contains the library and then restore.

  • Transporting Entire Folder Structures

    There may be something wrong in the way we do transports, but this is the scenario
    Example,
    Folder 1 (contains iview1, iview2, iview3)
    transported entire Folder 1 to QA
    QA will have Folder 1 (contains iview1, iview2, iview3)
    Deleted iview3 and added iviewA into Folder 1 (in DEV)
    Transport (no errors)
    QA now has Folder 1(iView1, iview2, iview3, iviewA)
    Looks like the transport does not do a deletion (like the R/3 transport, but just overlay files over)
    Anyone know how to bypass this bug ?

    Hi Wai,
    I think if the folder hierarchies in the Portal Catalog are completely identical in the source and target systems, the object is created or, if it already exists, it is overwritten in the target system.
    But I am not sure abt the deletion, i will try to simulate and check.
    Also I am in the process of transport to QA in my clent, could you please let me know how you transported you web dynpro iviews?
    thanks
    Suresh

Maybe you are looking for

  • Web Site name

    Hi there, Ok so I'm new to using iWeb so please forgive me if this question has been answered before. First off, do I need to use the web.mac.com/My.MacId/PageName for my address? I am using my .mac account to design a page for my business and this w

  • Tables/Joins for logical tables being combined

    I have 2 logical tables set up that have multiple physical table sources (using map to these tables). Some of the physical sources are the same in each logical table. It seems that when I make selections from Answers and look at the SQL, it is pickin

  • Smartform Dynamic colour in the item table

    Hi Experts, I have a requirement wherein we need different colours for each item in the table according to a particular condition. If the value in the  column two is 1 ,first item should have a colour blue in the last column If the col2 is 2, second

  • Performing searches and scrolling within a report using Plus and Viewer

    Hi All: In Discoverer Plus and Viewer, is there a way to do searches within a report? Also, if I have a report that has multiple pages, as much as I can adjsut the row number, is there a quick way to get from the beginning to the end of the report an

  • Strange input errors, please help

    ok, Ive been following a tutorial located here. I just got to section 2.4 and the tutorial says that it would be easier to allow input with his program. So I downloaded his program, compiled it, cheked to make sure that the compiled TextIO.class was