PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Which optins should I use to back up files
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Which optins should I use to back up files

Réponse
 
LinkBack Outils de la discussion
Vieux 04/11/2007, 04h05   #1
Bo Yang
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Which optins should I use to back up files

Hi,
I want to back up many files using gnu tar. I used -p to reserve the
user previlidge property. Do you mind to tell me that is there any other
special options should I take to make a better tar file? Thanks !

Regards!
Bo
  Réponse avec citation
Vieux 04/11/2007, 08h24   #2
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Which optins should I use to back up files

Bo Yang wrote:
>
> I want to back up many files using gnu tar. I used -p to reserve the
> user previlidge property. Do you mind to tell me that is there any other
> special options should I take to make a better tar file? Thanks !


[GNU tar]

"--create" and "--verify" is adequate. If you want a POSIX compliant
archive "--format=posix".

You need "-p" only when you _extract_ files and you are not user root.

--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.
  Réponse avec citation
Vieux 05/11/2007, 13h58   #3
Bo Yang
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Which optins should I use to back up files

Cyrus Kriticos :
> Bo Yang wrote:
>>
>> I want to back up many files using gnu tar. I used -p to reserve the
>> user previlidge property. Do you mind to tell me that is there any
>> other special options should I take to make a better tar file? Thanks !

>
> [GNU tar]
>
> "--create" and "--verify" is adequate. If you want a POSIX compliant
> archive "--format=posix".
>
> You need "-p" only when you _extract_ files and you are not user root.
>


Thank you very much!

Regards!
Bo
  Réponse avec citation
Vieux 05/11/2007, 16h47   #4
Wayne
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Which optins should I use to back up files

Bo Yang wrote:
> Hi,
> I want to back up many files using gnu tar. I used -p to reserve the
> user previlidge property. Do you mind to tell me that is there any other
> special options should I take to make a better tar file? Thanks !
>
> Regards!
> Bo


Note that tar doesn't by default backup ext[234] attributes, nor
any extended attributes (including selinux labels). Try using
"--xattrs" to back that stuff up as well.

-Wayne
  Réponse avec citation
Vieux 05/11/2007, 22h26   #5
Wayne
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Which optins should I use to back up files

Wayne wrote:
> Bo Yang wrote:
>> Hi,
>> I want to back up many files using gnu tar. I used -p to reserve the
>> user previlidge property. Do you mind to tell me that is there any other
>> special options should I take to make a better tar file? Thanks !
>>
>> Regards!
>> Bo

>
> Note that tar doesn't by default backup ext[234] attributes, nor
> any extended attributes (including selinux labels). Try using
> "--xattrs" to back that stuff up as well.
>
> -Wayne


Actually, a quick check of Gnu tar 1.15.1 shows it doesn't backup/restore
ACLs and EAs correctly. You should use "star" instead:

$ star -cv f=dir.tar --acl --xattr --xfflags artype=exustar dir

Which backups up everything in directory dir, including ACLs, EAs, and
any ext[234] attributes, to the archive "dir.tar". To restore:

$ star -xvp --acl --xattr --xfflags f=dir.tar

-Wayne
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h25.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12658 seconds with 13 queries