Re: rsync, links e chroot

"Marcelo Beckmann [email protected] [linux-pr]" <linux-pr-EYaqaC9dFX8MqA7zqLjoiV/I71DsQ//[email protected]> Fri, 16 May 2014 16:28:11 -0300
Newsgroups gmane.org.user-groups.linux.parana
Message-ID <CAKzQBz=jy04Td+L7v9h6ZCHwjSpZYvvWFfS7BCwn84TYsdtBSQ@mail.gmail.com>
--001a11c1577a0d95fb04f9896a82
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Ol=C3=A1,

Talvez voc=C3=AA possa testar essas op=C3=A7=C3=B5es do rsync:
        -l, --links                 copy symlinks as symlinks
        -L, --copy-links            transform symlink into referent file/di=
r
            --copy-unsafe-links     only "unsafe" symlinks are transformed
            --safe-links            ignore symlinks that point outside the
tree

--
Marcelo Beckmann


2014-04-14 17:11 GMT-03:00 Matias Schweizer <matias-7pUm/SSSJFa7hsvYdc9FTl/I71DsQ//[email protected]>:

>
> Pessoal:
>
> Tenho uma quest=C3=A3o aqui:
>
> Tenho uma origem com v=C3=A1rios diretorios, entre eles links, os quais s=
er=C3=A3o
> copiados via
> rsync para outro lugar. Ex:
>
> /usr/local/tmp/bla
> /usr/tmp -> /usr/local/tmp
>
> Bom, o rsync far=C3=A1 essas copias, mas ficar=C3=A1 em outro lugar:
>
> /backup/usr/local/tmp/bla
> /backup/usr/tmp -> /usr/local/tmp
>
> Note que o link =C3=A9 copiado as-is para o local de backup. Existe forma=
 de
> mexer nisso?
> Sei que d=C3=A1 para desconverter os links, mas isso duplicaria o espa=C3=
=A7o
> utilizado.
> No man do rsync n=C3=A3o achei nada.
>
> Outra ideia seria ver o samba (que mapear=C3=A1 o /backup), poderia ter u=
m
> chroot (/backup), de modo que o link funcionasse. assim eu n=C3=A3o preci=
saria
> mexer em mais
> nada.
>
> Att,
>
> Matias Schweizer
> matias-7pUm/SSSJFa7hsvYdc9FTl/I71DsQ//[email protected]
> SCHNAUZER Plastimodelismo www.spmodelismo.com.br
> EXOTIC Airplanes www.exoticairplanes.com
>
>
> ---
> Este email est=C3=A1 limpo de v=C3=ADrus e malwares porque a prote=C3=A7=
=C3=A3o do avast!
> Antiv=C3=ADrus est=C3=A1 ativa.
> http://www.avast.com
>
>
>
> ------------------------------------
>
> Links do Yahoo Grupos
>
>
>

--001a11c1577a0d95fb04f9896a82
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable





<head>

<style type=3D"text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title=20
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none;=20
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
<head>
<style type=3D"text/css">
<!--
#ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->


<div dir=3D"ltr"><div>Ol=C3=A1,<br><br></div>Talvez voc=C3=AA possa testar =
essas op=C3=A7=C3=B5es do rsync:<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 -l, --links=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 copy symlinks as symlinks<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -L, --copy-links=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 transform symlink into referent =
file/dir<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 --copy-u=
nsafe-links=C2=A0=C2=A0=C2=A0=C2=A0 only &quot;unsafe&quot; symlinks are tr=
ansformed<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 --safe-links=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 ignore symlinks that point outside the tree<br><div class=3D"g=
mail_extra"><br>--<br clear=3D"all"><div>
<div dir=3D"ltr"><div><div>Marcelo Beckmann<br></div><br></div></div></div>=
<br><div class=3D"gmail_quote">2014-04-14 17:11 GMT-03:00 Matias Schweizer =
<span dir=3D"ltr">&lt;<a href=3D"mailto:matias-7pUm/SSSJFa7hsvYdc9FTl/I71DsQ//[email protected]" target=
=3D"_blank">matias-7pUm/SSSJFa7hsvYdc9FTl/I71DsQ//[email protected]</a>&gt;</span>:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><br>
Pessoal:<br>
<br>
Tenho uma quest=C3=A3o aqui:<br>
<br>
Tenho uma origem com v=C3=A1rios diretorios, entre eles links, os quais ser=
=C3=A3o copiados via<br>
rsync para outro lugar. Ex:<br>
<br>
/usr/local/tmp/bla<br>
/usr/tmp -&gt; /usr/local/tmp<br>
<br>
Bom, o rsync far=C3=A1 essas copias, mas ficar=C3=A1 em outro lugar:<br>
<br>
/backup/usr/local/tmp/bla<br>
/backup/usr/tmp -&gt; /usr/local/tmp<br>
<br>
Note que o link =C3=A9 copiado as-is para o local de backup. Existe forma d=
e mexer nisso?<br>
Sei que d=C3=A1 para desconverter os links, mas isso duplicaria o espa=C3=
=A7o utilizado.<br>
No man do rsync n=C3=A3o achei nada.<br>
<br>
Outra ideia seria ver o samba (que mapear=C3=A1 o /backup), poderia ter um =
chroot (/backup), de modo que o link funcionasse. assim eu n=C3=A3o precisa=
ria mexer em mais<br>
nada.<br>
<br>
Att,<br>
<br>
Matias Schweizer<br>
<a href=3D"mailto:matias-7pUm/SSSJFa7hsvYdc9FTl/I71DsQ//[email protected]">matias-7pUm/SSSJFa7hsvYdc9FTl/I71DsQ//[email protected]</a><=
br>
SCHNAUZER Plastimodelismo <a href=3D"http://www.spmodelismo.com.br" target=
=3D"_blank">www.spmodelismo.com.br</a><br>
EXOTIC Airplanes <a href=3D"http://www.exoticairplanes.com" target=3D"_blan=
k">www.exoticairplanes.com</a><br>
<br>
<br>
---<br>
Este email est=C3=A1 limpo de v=C3=ADrus e malwares porque a prote=C3=A7=C3=
=A3o do avast! Antiv=C3=ADrus est=C3=A1 ativa.<br>
<a href=3D"http://www.avast.com" target=3D"_blank">http://www.avast.com</a>=
<br>
<br>
<br>
<br>
------------------------------------<br>
<br>
Links do Yahoo Grupos<br>
<br>
&lt;*&gt; Para visitar o site do seu grupo na web, acesse:<br>
=C2=A0 =C2=A0 <a href=3D"http://br.groups.yahoo.com/group/linux-pr/" target=
=3D"_blank">http://br.groups.yahoo.com/group/linux-pr/</a><br>
<br>
&lt;*&gt; Para sair deste grupo, envie um e-mail para:<br>
=C2=A0 =C2=A0 <a href=3D"mailto:linux-pr-unsubscribe-EYaqaC9dFX8MqA7zqLjoiV/I71DsQ//[email protected]">li=
nux-pr-unsubscribe-EYaqaC9dFX8MqA7zqLjoiV/I71DsQ//[email protected]</a><br>
<br>
&lt;*&gt; O uso que voc=C3=AA faz do Yahoo Grupos est=C3=A1 sujeito aos:<br=
>
=C2=A0 =C2=A0 <a href=3D"https://info.yahoo.com/legal/br/yahoo/utos/terms/"=
 target=3D"_blank">https://info.yahoo.com/legal/br/yahoo/utos/terms/</a><br=
>
<br>
<br>
</blockquote></div><br></div></div>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div>

=20=20=20=20=20=20
=20=20

=20=20=20=20
<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src=3D"http://geo.yahoo.com/serv?s=3D97490435/grpId=3D9448180/grpspI=
d=3D2137111254/msgId=3D5357/stime=3D1400268493" width=3D"1" height=3D"1"> <=
br>

<!-- |**|end egp html banner|**| -->

=20=20
<!-- |**|begin egp html banner|**| -->

<br>



=20=20=20
=20=20=20=20=20
=20
        <!-- |**|begin egp html banner|**| -->
        <div id=3D"ygrp-vital" style=3D"background-color: #f2f2f2; font-fam=
ily: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id=3D"vithd" style=3D"font-weight: bold; color: #333; text-tr=
ansform: uppercase; "><a href=3D"https://br.groups.yahoo.com/neo/groups/lin=
ux-pr/info;_ylc=3DX3oDMTJldnFhM2E0BF9TAzk3NDkwNDM3BGdycElkAzk0NDgxODAEZ3Jwc=
3BJZAMyMTM3MTExMjU0BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQwMDI2ODQ5Mw--" style=
=3D"text-decoration: none;">Visite seu Grupo</a></span>

     <ul style=3D"list-style-type: none; margin: 0; padding: 0; display: in=
line;">
                                                    </ul>
  </div>


<div id=3D"ft" style=3D"font-family: Arial; font-size: 11px; margin-top: 5p=
x; padding: 0 2px 0 0; clear: both;">
  <a href=3D"https://br.groups.yahoo.com/neo;_ylc=3DX3oDMTJkZmc1cmtmBF9TAzk=
3NDkwNDM1BGdycElkAzk0NDgxODAEZ3Jwc3BJZAMyMTM3MTExMjU0BHNlYwNmdHIEc2xrA2dmcA=
RzdGltZQMxNDAwMjY4NDkz" style=3D"float: left;"><img src=3D"http://l.yimg.co=
m/ru/static/images/yg/img/email/new_logo/yahoo_groups_pt-BR_141x19.png" hei=
ght=3D"19" width=3D"<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" a=
lt=3D"Yahoo! Grupos" style=3D"border: 0;"/></a>
  <div style=3D"color: #747575; float: right;"> &bull; <a href=3D"https://i=
nfo.yahoo.com/privacy/br/yahoo/groups/details.html" style=3D"text-decoratio=
n: none;">Privacidade</a> &bull; <a href=3D"mailto:linux-pr-unsubscribe@yah=
oogrupos.com.br?subject=3DSair do grupo" style=3D"text-decoration: none;">S=
air do grupo</a> &bull; <a href=3D"https://info.yahoo.com/legal/br/yahoo/ut=
os/terms/" style=3D"text-decoration: none;">Termos de uso</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

=20=20=20


  <br>

<!-- |**|end egp html banner|**| -->


<div style=3D"color: white; clear: both;"/>__,_._,___</div>
</body>

</html>

--001a11c1577a0d95fb04f9896a82--