I tried to create new folder in gdrive everydays when use copy command
rclone -vv -P copy "D:\4_Database" "mydrive:4_Database%date%"
I need create only 1 folder and name result format : YYYYMMDD
Because result %date% is : Thu 03/05/2020 (In gdrive result will slip to 3 folder Thu 03, 05 and 2020)
Windows 7, 64 bit
Thank for your help
There are some examples of how to do that sort of thing here
EDIT: Script updated to 1.3 to correct the 4 issues mentioned by asdfdsa later down. Now 1.3 for more fixes and improvements...
Well, since you knew the magic word (BOTH of them in fact!!) then I must oblige...
Here you go, all done! (now where do I send the bill?
Script has been tested, but of course I recommend you also test it thoroughly yourself and see that everything works as you expect before putting it into a live environment. Also check that you feel …
hello and welcome to the forum,
i am windows user and can help you.
please update rclone to the latest version
you should read about the flag
when testing you can use this flag
in that post that mentioned by
@ncw, i shared some code to create a folder with date+time stamp
here is the snippet
for /f "usebackq skip=1 tokens=1-6" %%g in (
wmic Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year ^| findstr /r /v "^$") do (
let me know if you have any questions.
yup! thank your fast support! ^^
I got it, Here is my command for who need
rclone -vv -P copy D:\4_Database mydrive:4_Database\2020%date:~10,4%%date:~4,2%%date:~7,2%
i think you want
yup! sorry, I have mistake when posted
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.