Overwrite backup folders date and time

Discuss RoboTask here
Post Reply
pancakegh
Posts: 15
Joined: Mon Feb 16, 2015 10:21 am

Overwrite backup folders date and time

Post by pancakegh »

Hey,

I made a file loop that takes backup folders from 24 hours or newer from my network wich strips and saves the backup folders into a local backup folder. The problem is that if there's a newer version of the folder, it won't update the folder date and time to the current date and time. Is there a way to set the date and time of the local backup folders to the current time?

here's my code:
[Root]
item0000=STRINGLIST
item0001=STRINGLIST
item0002=STRINGLIST
item0003=STRINGLIST

[\item0000]
s1=[General]
s2=ActionId=A_LOOP_FILE
s3=Name=File Loop
s4=Enabled=-1
s5=[Params]
s6=searchkind=1
s7=filecount=1
s8=file0=y:\*.*
s9=subdirs=0
s10=destvar=BACKUP
s11=createormodified=1
s12=createmode=6
s13=date1=20150318
s14=date2=20150319
s15=DuringMonths=1
s16=DuringDays=1
s17=OlderMonths=1
s18=OlderDays=1
s19=DuringHours=24
s20=DuringMinutes=1
s21=OlderHours=1
s22=OlderMinutes=1
s23=WithoutPath=1
s24=savesize=0
s25=timesize=0

[\item0001]
s1=[General]
s2=ActionId=A_FOLDER_CREATE
s3=Name=Create Folder (E:\backup bewerkte schoenen\{backup}\images2d)
s4=Enabled=-1
s5=[Params]
s6=newfolder=E:\backup bewerkte schoenen\{backup}\images2d

[\item0002]
s1=[General]
s2=ActionId=A_FOLDER_SYNCHRONIZE
s3=Name=Synchronize Folders
s4=Enabled=-1
s5=[Params]
s6=clearro=0
s7=details=0
s8=exact=0
s9=foder1=y:\{backup}\images2d
s10=foder2=E:\backup bewerkte schoenen\{backup}\images2d
s11=hidden=0
s12=howsync=1
s13=includemask=*.jpg
s14=subdir=0
s15=system=0

[\item0003]
s1=[General]
s2=ActionId=A_LOOP_END
s3=Name=End Loop
s4=Enabled=-1
s5=[Params]
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Overwrite backup folders date and time

Post by Oleg »

File operations doesn't change folder's datetime if the folder already exists.
You can use File Date and Time action
It can change the time for files and folders.

Also you can write in destination folder some file-indicator (for example: VERSION.TXT). It can contain all necessary information: datetime, comments, and so on
Oleg Yershov
Post Reply