Re: [SLE] tar restore file ownership

From: Kenneth Schneider (suselist_at_rtsx.com)
Date: 05/07/04

  • Next message: Kenneth Schneider: "Re: [SLE] Upgrade 9.0 -> 9.1 went totally wrong"
    To: SLE <suse-linux-e@suse.com>
    Date: Fri, 07 May 2004 08:33:28 -0400
    
    

    On Thu, 2004-05-06 at 10:34, Carlos E. R. wrote:
    > Hi,
    >
    > I have and old tar archive I want to restore. However, I notice that
    > directories from the tar archive are created with the current date and
    > owned by root:root - I'm running tar as root - whereas the files (not
    > directories) are restored with the original permissions, ownerships, and
    > dates.
    >
    > I use "tar -xvzp -f archive.tgz" for restoring.
    >
    > Is that normal? Am I doing something wrong, or was the archive created
    > without ownership information for directories?
    >
    > If it is, as I think, that the tar archive does not have that info, what
    > option, if any, should have been used to create the archive originally?
    >
    > --
    > Cheers,
    > Carlos Robinson

    One additional option you may try is:

    --same-owner

    although I believe this is a default setting. You may also try using:

    tar tzvf archive.tgz | less

    to see the ownership and perms associated with the files.

    -- 
    Ken Schneider
    unix user since 1989
    linux user since 1994
    SuSE user since 1998 (5.2)
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Kenneth Schneider: "Re: [SLE] Upgrade 9.0 -> 9.1 went totally wrong"

    Relevant Pages

    • Re: System Restore Points not available
      ... > He didn't say take ownership of the "restore points". ... >>> You need to take ownership of them while system restore is disabled. ... >>> Associate Expert - WindowsXP Expert Zone ...
      (microsoft.public.windowsxp.general)
    • Re: restoring FC1 to *new* partition from tar archive
      ... No, I'm not confusing it, and no, the ownership isn't numeric. ... I've created backups of redhat and fedora installs, ... and restore them under live cds (knoppix or self-made). ...
      (Fedora)
    • Re: access to folder denied
      ... Please know that a virus in these folders is ... harmless unless you invoke the restore point (yes, ... To take ownership: ... security tab and click advanced. ...
      (microsoft.public.windowsxp.general)
    • Re: file ownerships changed
      ... that I changed the ownership of the files in the ... to made that changes undo? ... Make another backup first, restore the ... If you have no backups, you're going to have a really bad weekend. ...
      (RedHat)
    • Re: [opensuse] Retaining the correct timestamp
      ... Carlos E. R. wrote: ... Hash: SHA1 ... although from what I saw a little while back the ownership appeared to be OK ...
      (SuSE)