Rclone "date variable" in folder name (in one row)?

Hi,
I am trying to move videos to Google Drive.

rclone v1.47.0

  • os/arch: linux/arm
  • go version: go1.12.4

Desired result this month :
rclone --checksum -vv move local:‘y/’ remote:‘main/2019/2019-05/video’

failed tests :
rclone --checksum -vv move local:‘y/’ remote:‘main/‘date “+%Y”’/‘date “+%Y-%M”’/video’

Any idea ?
Thanks in advance :wink:

edit:
note: I would love a simple thing like :
rclone --checksum -vv move local:‘y/’ remote:‘main/%Y%/%Y%-%M%/video’

I did this:

[felix@gemini ~]$ date +%Y/%Y-%M
2019/2019-08
[felix@gemini ~]$ rclone copy /etc/hosts GD:`date +%Y/%Y-%M`/ -vv
2019/05/04 07:08:53 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone" "copy" "/etc/hosts" "GD:2019/2019-08/" "-vv"]
2019/05/04 07:08:53 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2019/05/04 07:08:53 DEBUG : hosts: Couldn't find file - need to transfer
2019/05/04 07:08:56 INFO  : hosts: Copied (new)
2019/05/04 07:08:56 INFO  :
Transferred:   	       203 / 203 Bytes, 100%, 58 Bytes/s, ETA 0s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            1 / 1, 100%
Elapsed time:        3.4s

2019/05/04 07:08:56 DEBUG : 4 go routines active
2019/05/04 07:08:56 DEBUG : rclone: Version "v1.47.0" finishing with parameters ["rclone" "copy" "/etc/hosts" "GD:2019/2019-08/" "-vv"]
[felix@gemini ~]$

and

[felix@gemini ~]$ rclone ls GD:2019
      203 2019-08/hosts

Thanks Animosity022. :wink:
I get like you : “2019/2019-XX
Alas “XX” is not equal to “05” (which should be as we are currently in “May” of this year) !

Thanks in advance :wink:

Sorry M is minute and you wanted month. You can always ‘man date’ for the options for the command as well.

date +%Y/%Y-%m
2019/2019-05

Wow Many thanks Animosity022. I much appreciated your help. :wink:
It is working like a charm. :wink:
Thank also for the ‘man date’ which I wasn’t aware of. :wink:

My example becomes :
rclone move local:'y/' remote:main/date +%Y/%Y-%mblabla/video -vv

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