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


Groups > uk.comp.sys.mac > #138175

Re: Duplicate a folder structure

From Bruce Horrocks <07.013@scorecrow.com>
Newsgroups uk.comp.sys.mac
Subject Re: Duplicate a folder structure
Date 2020-01-03 23:22 +0000
Message-ID <f010201a-c64c-9c80-7feb-b182955e76b2@scorecrow.com> (permalink)
References <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>

Show all headers | View raw


On 03/01/2020 21:54, SM wrote:
> Is there a way to copy a folder structure - like mirroring but with the
> new folders all empty?
> 
> Stuart
> 

If you're happy with using the terminal then the command:

$ rsync -a --include '*/' --exclude '*' "source" "target"

will do what you ask, preserving permissions and ownership as well.

-- 
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)

Back to uk.comp.sys.mac | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Duplicate a folder structure info@that.sundog.co.uk (SM) - 2020-01-03 21:54 +0000
  Re: Duplicate a folder structure nospam <nospam@nospam.invalid> - 2020-01-03 17:32 -0500
    Re: Duplicate a folder structure info@that.sundog.co.uk (SM) - 2020-01-04 13:15 +0000
      Re: Duplicate a folder structure Graham J <nobody@nowhere.co.uk> - 2020-01-04 13:48 +0000
        Re: Duplicate a folder structure Basil Jet <basil@spamspamspam.com> - 2020-01-04 14:13 +0000
          Re: Duplicate a folder structure info@that.sundog.co.uk (SM) - 2020-01-04 21:46 +0000
          Re: Duplicate a folder structure nospam@de-ster.demon.nl (J. J. Lodder) - 2020-01-05 11:14 +0100
  Re: Duplicate a folder structure Bruce Horrocks <07.013@scorecrow.com> - 2020-01-03 23:22 +0000
    Re: Duplicate a folder structure info@that.sundog.co.uk (SM) - 2020-01-04 13:15 +0000
  Re: Duplicate a folder structure nospam@de-ster.demon.nl (J. J. Lodder) - 2020-01-04 10:55 +0100
    Re: Duplicate a folder structure info@that.sundog.co.uk (SM) - 2020-01-04 13:15 +0000

csiph-web