Re: rsync only the directories, not the files

This is a discussion on Re: rsync only the directories, not the files within the Rsync forums, part of the Networking and Network Related category; --===============1515721469== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-T1ZmlMbydIY0XY4eQHuj" --=-T1ZmlMbydIY0XY4eQHuj Content-...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008
Matt McCutchen
 
Posts: n/a
Default Re: rsync only the directories, not the files


--===============1515721469==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="=-T1ZmlMbydIY0XY4eQHuj"


--=-T1ZmlMbydIY0XY4eQHuj
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2008-04-24 at 18:00 +0100, Joao Ferreira gmail wrote:
> can I tell rsync to sync only the directory struture but _not_ the files
> inside the directories ?


Yes. Pass the following option to exclude (-) everything but (!)
directories (/):

--filter=3D'-! */'

Matt

--=-T1ZmlMbydIY0XY4eQHuj
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBIEMB5C+xSYN/RlfsRAuZYAJ9z2dR8LpmyL2MfSVKOAlH2VyTpDQCfSm2l
bior4uiEd+X8NCiAaag8U8k=
=e+4P
-----END PGP SIGNATURE-----

--=-T1ZmlMbydIY0XY4eQHuj--


--===============1515721469==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
--===============1515721469==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0