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


Groups > uk.comp.sys.mac > #138171 > unrolled thread

Duplicate a folder structure

Started byinfo@that.sundog.co.uk (SM)
First post2020-01-03 21:54 +0000
Last post2020-01-04 13:15 +0000
Articles 11 — 6 participants

Back to article view | Back to uk.comp.sys.mac


Contents

  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

#138171 — Duplicate a folder structure

Frominfo@that.sundog.co.uk (SM)
Date2020-01-03 21:54 +0000
SubjectDuplicate a folder structure
Message-ID<1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>
Is there a way to copy a folder structure - like mirroring but with the
new folders all empty?

Stuart
-- 
cut that out to reply

[toc] | [next] | [standalone]


#138173

Fromnospam <nospam@nospam.invalid>
Date2020-01-03 17:32 -0500
Message-ID<030120201732164137%nospam@nospam.invalid>
In reply to#138171
In article <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>, SM
<info@that.sundog.co.uk> wrote:

> Is there a way to copy a folder structure - like mirroring but with the
> new folders all empty?

what is the problem you're trying to solve?

[toc] | [prev] | [next] | [standalone]


#138191

Frominfo@that.sundog.co.uk (SM)
Date2020-01-04 13:15 +0000
Message-ID<1ojnol5.1n7w3c8tqh05cN%info@that.sundog.co.uk>
In reply to#138173
nospam <nospam@nospam.invalid> wrote:

> In article <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>, SM
> <info@that.sundog.co.uk> wrote:
> 
> > Is there a way to copy a folder structure - like mirroring but with the
> > new folders all empty?
> 
> what is the problem you're trying to solve?

Fixed with rsync

The task was to recreate a folder structure for organising assets in a
new video editing projects ie recreating a folder structure that had
been used in an earlier project.

Stuart
-- 
cut that out to reply

[toc] | [prev] | [next] | [standalone]


#138193

FromGraham J <nobody@nowhere.co.uk>
Date2020-01-04 13:48 +0000
Message-ID<quq53i$gbt$1@dont-email.me>
In reply to#138191
SM wrote:
> nospam <nospam@nospam.invalid> wrote:
> 
>> In article <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>, SM
>> <info@that.sundog.co.uk> wrote:
>>
>>> Is there a way to copy a folder structure - like mirroring but with the
>>> new folders all empty?
>>
>> what is the problem you're trying to solve?
> 
> Fixed with rsync
> 
> The task was to recreate a folder structure for organising assets in a
> new video editing projects ie recreating a folder structure that had
> been used in an earlier project.

If the asset structure for a new project is always the same, it might be 
easier to have a script to create the folder structure.  Then create the 
root folder for the structure, cd to that folder, and run the script.


-- 
Graham J

[toc] | [prev] | [next] | [standalone]


#138194

FromBasil Jet <basil@spamspamspam.com>
Date2020-01-04 14:13 +0000
Message-ID<quq6if$p0v$1@dont-email.me>
In reply to#138193
On 04/01/2020 13:48, Graham J wrote:
> SM wrote:
>> nospam <nospam@nospam.invalid> wrote:
>>
>>> In article <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>, SM
>>> <info@that.sundog.co.uk> wrote:
>>>
>>>> Is there a way to copy a folder structure - like mirroring but with the
>>>> new folders all empty?
>>>
>>> what is the problem you're trying to solve?
>>
>> Fixed with rsync
>>
>> The task was to recreate a folder structure for organising assets in a
>> new video editing projects ie recreating a folder structure that had
>> been used in an earlier project.
> 
> If the asset structure for a new project is always the same, it might be 
> easier to have a script to create the folder structure.  Then create the 
> root folder for the structure, cd to that folder, and run the script.

How is that easier than using rsync?

It would be easier to permanently keep an empty structure, and copy it 
before using the copy.

-- 
Basil Jet recently enjoyed listening to
Set Fire To Flames - 2001 - Sings Reign Rebuilder

[toc] | [prev] | [next] | [standalone]


#138208

Frominfo@that.sundog.co.uk (SM)
Date2020-01-04 21:46 +0000
Message-ID<1ojoba0.miml8f130tul3N%info@that.sundog.co.uk>
In reply to#138194
Basil Jet <basil@spamspamspam.com> wrote:

> On 04/01/2020 13:48, Graham J wrote:
> > SM wrote:
> >> nospam <nospam@nospam.invalid> wrote:
> >>
> >>> In article <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>, SM
> >>> <info@that.sundog.co.uk> wrote:
> >>>
> >>>> Is there a way to copy a folder structure - like mirroring but with the
> >>>> new folders all empty?
> >>>
> >>> what is the problem you're trying to solve?
> >>
> >> Fixed with rsync
> >>
> >> The task was to recreate a folder structure for organising assets in a
> >> new video editing projects ie recreating a folder structure that had
> >> been used in an earlier project.
> > 
> > If the asset structure for a new project is always the same, it might be
> > easier to have a script to create the folder structure.  Then create the
> > root folder for the structure, cd to that folder, and run the script.

There's a free program called Post Haste which come preloaded with
templates for various media projects which is arguably easier than
rollling your own.

<https://www.digitalrebellion.com/posthaste/>

> How is that easier than using rsync?
> 
> It would be easier to permanently keep an empty structure, and copy it
> before using the copy.

Rsync worked a treat.

Stuart
-- 
cut that out to reply

[toc] | [prev] | [next] | [standalone]


#138215

Fromnospam@de-ster.demon.nl (J. J. Lodder)
Date2020-01-05 11:14 +0100
Message-ID<1ojpbbl.161ohieik9yn5N@de-ster.xs4all.nl>
In reply to#138194
Basil Jet <basil@spamspamspam.com> wrote:

> On 04/01/2020 13:48, Graham J wrote:
> > SM wrote:
> >> nospam <nospam@nospam.invalid> wrote:
> >>
> >>> In article <1ojmi25.8q73bf3vhch2N%info@that.sundog.co.uk>, SM
> >>> <info@that.sundog.co.uk> wrote:
> >>>
> >>>> Is there a way to copy a folder structure - like mirroring but with the
> >>>> new folders all empty?
> >>>
> >>> what is the problem you're trying to solve?
> >>
> >> Fixed with rsync
> >>
> >> The task was to recreate a folder structure for organising assets in a
> >> new video editing projects ie recreating a folder structure that had
> >> been used in an earlier project.
> > 
> > If the asset structure for a new project is always the same, it might be
> > easier to have a script to create the folder structure.  Then create the
> > root folder for the structure, cd to that folder, and run the script.
> 
> How is that easier than using rsync?
> 
> It would be easier to permanently keep an empty structure, and copy it
> before using the copy.

Yes, but that freezes you somewhat in always the same structure.
And of course you (read as I) always forget
to carry modifications back to your template
when you find you need to modify it during a project.
Or you forget to press 'Option' when you drag the template somewhere
for a new job, so it's gone and you have to find the back-up,
if still there.

Tried both, but the above is why I prefer the 'Sync empty' method,

Jan

[toc] | [prev] | [next] | [standalone]


#138175

FromBruce Horrocks <07.013@scorecrow.com>
Date2020-01-03 23:22 +0000
Message-ID<f010201a-c64c-9c80-7feb-b182955e76b2@scorecrow.com>
In reply to#138171
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)

[toc] | [prev] | [next] | [standalone]


#138190

Frominfo@that.sundog.co.uk (SM)
Date2020-01-04 13:15 +0000
Message-ID<1ojnofi.16c4syw16o9rzoN%info@that.sundog.co.uk>
In reply to#138175
Bruce Horrocks <07.013@scorecrow.com> wrote:

> 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.

That didn't seem to work but this did:

rsync -av -f"+ */" -f"- *" /src /dest/

Why? Beats me

Stuart
-- 
cut that out to reply

[toc] | [prev] | [next] | [standalone]


#138182

Fromnospam@de-ster.demon.nl (J. J. Lodder)
Date2020-01-04 10:55 +0100
Message-ID<1ojni6r.h9sm1mpxyw1kN@de-ster.xs4all.nl>
In reply to#138171
SM <info@that.sundog.co.uk> wrote:

> Is there a way to copy a folder structure - like mirroring but with the
> new folders all empty?

Long ago I did it with a synchronising utility
with a copy only files <some criterion>
Or idem with don't copy.

Setting an impossible condition does just what you want,

Jan

[toc] | [prev] | [next] | [standalone]


#138192

Frominfo@that.sundog.co.uk (SM)
Date2020-01-04 13:15 +0000
Message-ID<1ojnoqd.gpis26190lnagN%info@that.sundog.co.uk>
In reply to#138182
J. J. Lodder <nospam@de-ster.demon.nl> wrote:

> SM <info@that.sundog.co.uk> wrote:
> 
> > Is there a way to copy a folder structure - like mirroring but with the
> > new folders all empty?
> 
> Long ago I did it with a synchronising utility
> with a copy only files <some criterion>
> Or idem with don't copy.
> 
> Setting an impossible condition does just what you want,

Thanks

Stuart
-- 
cut that out to reply

[toc] | [prev] | [standalone]


Back to top | Article view | uk.comp.sys.mac


csiph-web