Is it possible to copy only folder structure?

What is the problem you are having with rclone?

Is there a way to copy only the folders without the files inside?
If I use --exclude *.* --create-empty-src-dirs only the folders that are empty are copied, the ones with some files aren't created (although the files are excluded from copy).

What is your rclone version (output from rclone version)

rclone v1.53.1

  • os/arch: windows/amd64
  • go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 7, 64 bit

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy gd1: gd2: --exclude *.* --create-empty-src-dirs

I think if you do something like this (assuming you don't have any 100 year old files) it will do what you want.

rclone copy gd1: gd2: --min-age 100y --create-empty-src-dirs

Oh yes, that's the way, thanks a lot

Edit: Some files in google drive have the date 31 Dec 0, and even setting 10000y doesn't work, I added --min-size 5000G and it works

I'd have used an rclone mount and find. ala find . -type d -exec mkdir -p /prefix/{} ;

Great idea - the two flags in combo are good. Glad you got it working.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.