It is currently Tue Oct 21, 2014 7:08 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Improved antivirus UBCD update scripts for f-prot & clamav
PostPosted: Wed Aug 27, 2014 4:20 pm 
Offline

Joined: Wed Aug 27, 2014 4:13 pm
Posts: 13
I have improved the antivirus update scripts form UBCD 5.3.0 to download the files only if newer files are available based on the server file timestamp.

Attachment:
File comment: Improved antivirus update scripts
antivirus_update_scripts.tgz [2.57 KiB]
Downloaded 11 times


I am not sure where and to whom to submit such updates.

Thanks
milindck


Last edited by milindck on Wed Aug 27, 2014 5:58 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Improved antivirus UBCD update scripts for f-prot & clam
PostPosted: Wed Aug 27, 2014 5:57 pm 
Offline

Joined: Mon Feb 21, 2005 10:59 pm
Posts: 1294
Hi, thanks for sharing your updates!

However, the "clamav.sh" script has already been updated in V5.3.1 to download only if the timestamps on the webpage have changed, which I think is a more efficient way of performing the update since it does not require downloading the .cvd files (and stat-ing them to decide whether to create the .txz package).

The "fprot.sh" script seems to be working OK in its current form, so I am not sure why the changes are required. Could you elaborate?


Top
 Profile  
 
 Post subject: Re: Improved antivirus UBCD update scripts for f-prot & clam
PostPosted: Wed Aug 27, 2014 6:08 pm 
Offline

Joined: Wed Aug 27, 2014 4:13 pm
Posts: 13
Eg. The signature file main.cvd is 62MB, daily.cvd is 26MB and antivir.def is 66MB which takes about 1Hr 20 minutes total only to find that script downloads the same file that I had so I would like to avoid downloading the same file repeatedly.

NOTE:
As far as I understand the "wget -N -P <dest_dir> <remote_server_url>" command downloads the file only if the file timestamp on the remote server is newer than the local file timestamp.

But "wget -O <dest_dir>/main.cvd <remote_server_url>" downloads every time and sets the downloaded file time to server file time.

I will see if the UBCD 5.3.1 versions of the scripts have similar improvement like mine.

I have attached the diff/patch files
Attachment:
diff_files.tgz [1.61 KiB]
Downloaded 7 times


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group