[FUG-BR] copiar arquivo

Celso Viana celso.vianna em gmail.com
Ter Jan 25 12:18:14 BRST 2005


Ricardo,

Obrigado pela dica.

Celso


On Tue, 25 Jan 2005 12:07:47 -0200 (BRDT), Ricardo de Lima e Souza
<ricardo em bsiinformatica.com.br> wrote:
> Celso,
> 
> Para manter a integridade com o tar a opção -p, por exemplo:
> -> compactar
> tar -cvzpf home.tgz /home
> 
> -> descompactar
> tar -xvzpf home.tgz
> 
> Atenciosamente,
> 
> Ricardo Souza
> Administrador de Redes
> ricardo em bsiinformatica.com.br
> 
> 
> On Mon, 24 Jan 2005, Celso Viana wrote:
> 
> > Ricardo,
> >
> > Fazendo um backup do /home inteiro com tar, como é que faço pra
> > restaura-lo com as mesmas permissões originais
> > (dono,grupo,permissões)?
> >
> > Celso
> >
> >
> > > On Fri, Jan 21, 2005 at 06:27:41PM -0300, Luís Gustavo wrote:
> > > > acredito que só por meio de um script!
> > > >
> > >
> > > Com a opção "-p" é possível. 'man cp':
> > >
> > >     -p    Cause cp to preserve the following attributes of each source file
> > >           in the copy: modification time, access time, file flags, file mode,
> > >           user ID, and group ID, as allowed by permissions.
> > >
> > >           If the user ID and group ID cannot be preserved, no error message
> > >           is displayed and the exit value is not altered.
> > >
> > >           If the source file has its set-user-ID bit on and the user ID can-
> > >           not be preserved, the set-user-ID bit is not preserved in the
> > >           copy's permissions.  If the source file has its set-group-ID bit on
> > >           and the group ID cannot be preserved, the set-group-ID bit is not
> > >           preserved in the copy's permissions.  If the source file has both
> > >           its set-user-ID and set-group-ID bits on, and either the user ID or
> > >           group ID cannot be preserved, neither the set-user-ID nor set-
> > >           group-ID bits are preserved in the copy's permissions.
> > >
> > > > > estando logado como root, é possível, ao copiar um
> > > > > arquivo para o
> > > > > /home de um usuário, fazer com que o mesmo já fique
> > > > > com as permissões
> > > > > desse usuário automaticamente?
> > >
> > > --
> > > Ricardo Campos Passanezi

_______________________________________________________________
Para enviar um novo email para a lista: freebsd em fug.com.br
Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/




Mais detalhes sobre a lista de discussão freebsd