Wasabi create new folder per run

Hi

is it possible to get rclone to create a new folder on wasabi everytime it run a sync or copy job?

so on the local i have a folder and everytime i want rclone to run i want it to put the contents into a new folder each time it run on wasabi

Sounds like you want a bit of shell scripting

rclone copy /local/stuff wasabi:bucket/$(date -Is)

which will make dated directories

on windows

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 (
set day=00%%g
set hours=00%%h
set minutes=00%%i
set month=00%%j
set seconds=00%%k
set year=%%l
)
set date=%year%%month%%day%%hh%%mm%%ss%
rclone copy c:\local\stuff wasabi:bucket/%date%

1 Like