Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176280

Re: Duplicating a partition's directory structure - How?

From Sven Joachim <svenjoac@gmx.de>
Newsgroups linux.debian.user
Subject Re: Duplicating a partition's directory structure - How?
Date 2017-01-03 12:30 +0100
Message-ID <sVvrX-5sm-1@gated-at.bofh.it> (permalink)
References <sVvii-5p4-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2017-01-03 05:13 -0600, Richard Owlett wrote:

> I wish to duplicate a partition's directory structure without any of
> the existing file contents. The immediate application is a heavily
> customized version of an installation DVD. There are two underlying
> goals. I wish to reuse some existing utilities which expect to find
> data in a particular branch of the directory tree. The second is very
> similar in that a person familiar with a structure would assume that
> certain types of information will be in a particular sub-directory.
>
> Also this will be an educational experience as I expect the answer
> will be elegant in its simplicity and point me towards chasms in my
> understanding of Linux.

Found this solution on [1], it seems to work.

$ rsync -a -f"+ */" -f"- *" source/ destination/

Cheers,
       Sven


1. http://psung.blogspot.com/2008/05/copying-directory-trees-with-rsync.html

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Duplicating a partition's directory structure - How? Richard Owlett <rowlett@cloud85.net> - 2017-01-03 12:20 +0100
  Re: Duplicating a partition's directory structure - How? Sven Joachim <svenjoac@gmx.de> - 2017-01-03 12:30 +0100
    Re: Duplicating a partition's directory structure - How? Dan Ritter <dsr@randomstring.org> - 2017-01-03 13:00 +0100
    THANK YOU! - was [Re: Duplicating a partition's directory structure -  How?] Richard Owlett <rowlett@cloud85.net> - 2017-01-03 14:10 +0100
  Re: Duplicating a partition's directory structure - How? hdv@gmail <hdv.jadev@gmail.com> - 2017-01-03 14:30 +0100
    Re: Duplicating a partition's directory structure - How? Richard Owlett <rowlett@cloud85.net> - 2017-01-03 14:40 +0100
    Re: Duplicating a partition's directory structure - How? Charlie <ariestao1@ipstarmail.com.au> - 2017-01-03 23:50 +0100
  Re: Duplicating a partition's directory structure - How? hdv@gmail <hdv.jadev@gmail.com> - 2017-01-03 14:30 +0100
  Re: Duplicating a partition's directory structure - How? Jörg-Volker Peetz <jvpeetz@web.de> - 2017-01-03 19:30 +0100

csiph-web