Hongyi Zhao
2015-Apr-06 04:29 UTC
Downloading specific files with rsync and make them keeping the original directories structures.
Hi all, See the following command: $ rsync -av ftp.cn.debian.org::debian/dists/Debian7.8/Release . Which will download the file Release under the directory from which the rsync command is isssued. If I want to keep the original directories structures, say, for this case, put the the Release in the following location: ./dists/Debian7.8/Release If the directory tree doesn't exist, let the rsync create the directory structure firstly and then put the file into it. Is this possible for this case? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Kevin Korb
2015-Apr-06 04:34 UTC
Downloading specific files with rsync and make them keeping the original directories structures.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 See --relative though it will need a little bit of massaging to avoid the debian dir. On 04/06/2015 12:29 AM, Hongyi Zhao wrote:> Hi all, > > See the following command: > > > $ rsync -av ftp.cn.debian.org::debian/dists/Debian7.8/Release . > > Which will download the file Release under the directory from which > the rsync command is isssued. > > If I want to keep the original directories structures, say, for > this case, put the the Release in the following location: > > ./dists/Debian7.8/Release > > If the directory tree doesn't exist, let the rsync create the > directory structure firstly and then put the file into it. > > Is this possible for this case? > > Regards >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlUiDN0ACgkQVKC1jlbQAQfMrwCdH5vYHTsUFcetEgd1I9jrNpN8 clwAoIEUYPJZuq7Cr6wfEln1vYxvhFGn =iMUS -----END PGP SIGNATURE-----
Hongyi Zhao
2015-Apr-06 07:07 UTC
Downloading specific files with rsync and make them keeping the original directories structures.
On Mon, 06 Apr 2015 00:34:37 -0400, Kevin Korb wrote:> See --relative though it will need a little bit of massaging to avoid > the debian dir.Good, thanks a lot. The following command does the trick: rsync -vR -P rsync://ftp.cn.debian.org/debian/./dists/Debian7.8/main/ binary-i386/Packages.gz . Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Seemingly Similar Threads
- Downloading specific files with rsync and make them keeping the original directories structures.
- --append and then --append-verify will not work.
- --append and then --append-verify will not work.
- Rsync a directory via a linked name.
- Rsync a directory via a linked name.