Move folder in remote

Hello,
i upload my backup on Google Drive with rclone and works fine.

But i have a lot of subfolders (1 a day) with

backup/2019-02-06
backup/2019-02-07
backup/2019-02-08
backup/2019-02-09

i would move folder old than 7 days in a subfolder named old, so

backup/old/2019-01-30
backup/old/2019-01-31
backup/old/2019-02-01

backup/2019-02-06
backup/2019-02-07
backup/2019-02-08
backup/2019-02-09

so i test with this command

rclone -v --dry-run --min-age 7d move gdrive:/backup/ gdrive:/backup/old

but i receive this error

…can’t move files on overlapping remotes…

can i move folder on same remote?

thank you

yes you can, You’ll just have to do it in two steps something like this.

rclone -v --dry-run --min-age 7d move gdrive:/backup/ gdrive:/backup-old
rclone -v --dry-run --min-age 7d move gdrive:/backup-old gdrive:/backup/old

That probably won’t do what you want though as --min-age 7d refers to the age of the files in the directories.

I think you’ll have to do a bit of scripting