Is there a way to get ADDFILES to only update the upload date on files that have a newer timestamp than before?
Basically - I'd like to be able to mirror some files, but make sure that the newest version of files is listed as recently uploaded, without updating the upload date of any files that weren't updated (if that makes sense.)
There was no existing feature to do that, but I just added it for ya. Use the '-p' option (in this morning's build) and addfiles will compare the file's timestamp with the upload timestamp and skip files that haven't been changed since.
Re: ADDFILES and upload date
By: Digital Man to Deepthaw on Fri Jul 07 2017 12:44 am
There was no existing feature to do that, but I just added it for ya. Use the '-p' option (in this morning's build) and addfiles will compare the file's timestamp with the upload timestamp and skip files that haven't been changed since.
Wow, thanks! The next question is - do you mind if I mirror the Synchronet folder from your site onto my own, including the nightly builds?
I figure wget can already be configured to pull down only those files that have changed, and this change to ADDFILES will make it so it doesn't appear to my users that the entire directory has been uploaded anew every night.
Let me know how the addfiles -p enhancement works for ya.
Let me know how the addfiles -p enhancement works for ya.
Re: ADDFILES and upload date
By: Digital Man to Deepthaw on Fri Jul 07 2017 12:24 pm
Let me know how the addfiles -p enhancement works for ya.
I gave it a few test runs, and it seems to be working with one hang-up : the date verification doesn't seem to be working for the first file the directory. It always thinks it's new and adds it. I tested it by deleting the file it kept adding on every run (despite wget not updating it) and it would instead add the next file in the directory.
Interesting. I don't really have an explanation for that one. What is the upload date/time for that file (that's the date that is compared)?
Every time ADDFILES completes, whatever is the first result of a directory listing gets an upload date of when the batch was ran, but everything else works as expected (only the nightly builds got their upload date changed, which was the intended behavior.)
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 333 |
Nodes: | 10 (0 / 10) |
Uptime: | 146:28:57 |
Calls: | 581 |
Messages: | 237921 |