Moving data to GDrive


I've just discovered rclone and it looks like a really, really excellent tool.

I'm having trouble moving folders and subdirs with rclone and i would appreciate any help greatly.

My problem is this: Under /pool/movies i have several subfolders with files under them.
If i run
rclone moveto "/pool/movies/"/ gdrive:"movies" --progress --buffer-size=2048M --drive-chunk-size=25

It dosent take the folder structure over and all files are placed under gdrive:movies
What i expected was something like rsync behavior.

rclone -V
rclone v1.52.0
- os/arch: linux/amd64
- go version: go1.14.3 

Running on Ubuntu 18.

I bet there is an easy solution to this that i just haven't found yet. Hope you can helt me along the way.


Let's try a test

$ rclone tree /tmp/src/
├── file1.txt
├── sub
│   └── file2.txt
└── sub2

Move the files

$ rclone moveto -v /tmp/src TestDrive:move-test
2020/06/04 09:56:11 INFO  : sub/file2.txt: Copied (new)
2020/06/04 09:56:11 INFO  : sub/file2.txt: Deleted
2020/06/04 09:56:11 INFO  : file1.txt: Copied (new)
2020/06/04 09:56:11 INFO  : file1.txt: Deleted
2020/06/04 09:56:11 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks:                 4 / 4, 100%
Deleted:                2
Renamed:                2
Transferred:            2 / 2, 100%
Elapsed time:         4.9s


$ rclone tree TestDrive:move-test
├── file1.txt
└── sub
    └── file2.txt

So it seemed to move the files with structure, though not the empty directories because I forgot the --create-empty-src-dirs flag.

What behaviour are you seeing?

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