View Full Version : ioA newdate part + symlinks
hi,
I configured ioA to create newdate + TODAY-MP3/0DAY symlinks.. the first day it worked fine, but on the second day the symlinks were not updated... they still linked to the yesterday mp3 directory...
here is my config
Area=0DAY|0DAY|e:\dmp\0DAY\%M%D|/0DAY/%M%D|0|e:\dmp\TODAY-0DAY
Area=MP3|MP3|e:\dmp\MP3\%M%D|/MP3/%M%D|0|e:\dmp\TODAY-MP3
Area=BOOKS|BOOKS|e:\dmp\BOOKS\%M%D|/BOOKS/%M%D|0|e:\dmp\TODAY-BOOKS
i always have to deleted the symlinks and recreate them with "site newdate" :(
any1 got a solution?
Classic problem it seems for some
Do you get any errors in debug that dir exist or such. If so symlink is not updated(by design).
If you run newdate in a commandline you can see what it prints for ioFTPD to use. If that looks correct I dunno. Its case sensitive If not mistaken darkone said.
bounty
11-01-2003, 07:22 PM
you maybe should add newdate in ioftpd scheduler
Ex.: Newday = EXEC 0 0 * * ..\scripts\ioA\ioA.exe NEWDATE
have fun
bounty
@bounty:
it's already added in scheduler.. it creates the newdate directories flawless, it's just the symlink which does not get updated
@WarC:
thats what i found in my logs
11-02-2003 00:01:58 COMMANDLINE - NEWDATE
11-02-2003 00:01:58 NEWDATE - arealine= 0DAY|0DAY|e:\dmp\0DAY\%M%D|/0DAY/%M%D|0|e:\dmp\TODAY-0DAY
11-02-2003 00:01:58 NEWDATE - !vfs:chattr 1 "e:\dmp\TODAY-0DAY" "/0DAY/1102"
11-02-2003 00:01:58 NEWDATE vfs - !vfs:add 777 0:0 e:\dmp\0DAY\1102
11-02-2003 00:01:58 NEWDATE - arealine= MP3|MP3|e:\dmp\MP3\%M%D|/MP3/%M%D|0|e:\dmp\TODAY-MP3
11-02-2003 00:01:58 NEWDATE - !vfs:chattr 1 "e:\dmp\TODAY-MP3" "/MP3/1102"
11-02-2003 00:01:58 NEWDATE vfs - !vfs:add 777 0:0 e:\dmp\MP3\1102
11-02-2003 00:01:58 NEWDATE - arealine= BOOKS|BOOKS|e:\dmp\BOOKS\%M%D|/BOOKS/%M%D|0|e:\dmp\TODAY-BOOKS
11-02-2003 00:01:58 NEWDATE - !vfs:chattr 1 "e:\dmp\TODAY-BOOKS" "/BOOKS/1102"
11-02-2003 00:01:58 NEWDATE vfs - !vfs:add 777 0:0 e:\dmp\BOOKS\1102
no error like it seems :/
the directorys are all upper case on my server, so it should work
bounty
11-01-2003, 07:50 PM
did you followed this documentation ?
http://www.ioftpd.com/documentation/03-vfs.php#symlink
i don't think there is a variable for month&day in ioftpd
eg. site chattr +l "TODAY-MP3" "/MP3/%M%D"
so ioA must do the job :banana:
jbeezer
11-10-2003, 04:42 PM
Any resolution to this? I also have problems with the symlinks getting updated.
yes, the problem is still there
also a option to set the owner for newdate directories would be great.. nobody/nogroup doesn't look good :)
EwarWoo
11-11-2003, 02:44 AM
I've had this before, delete the symlink and it will hopefully recreate it the next day correctly and start updating correctly again.
No idea why, but it worked for me.
MadCowAss
11-12-2003, 01:54 PM
Originally posted by EwarWoo
I've had this before, delete the symlink and it will hopefully recreate it the next day correctly and start updating correctly again.
No idea why, but it worked for me.
n00b --> it works for you ?
This might be due to the usage of UTC where localtime is needed.
Read this thread (http://www.ioftpd.com/board/showthread.php?threadid=1897) to know what to change.
no sorry, problem still exists
i own a server in the UK, and i want it to create newdate directories at 0:00 german time...
i tried to use Use_Locale_Time_Instead_of_UTC=1
and set scheduler to 23:00, but no luck so far :/
Then you have a problem.
To trigger the newdate event at 0:00 GMT+1 (german time), you have to use 0 23 * * in the scheduler.
But, at 23:00 UTC, both UTC and UK times are still "yesterday" (german time).
You might want to setup your server to use GMT+1 as localtime.
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.