you could set a cron job to do that for you, PHP might be something like ...
cron /usr/bin/php -q /path/to/script.php
PHP Code:
<?php
$src_folder='/home/blah/webcam';
$dest_folder='/home/blah/webcam/history';
$arr=array('a','b','c','d');
foreach($arr as $a){
if(file_exists("$src_folder/{$a}.jpg")){
rename("$src_folder/{$a}.jpg","$dest_folder/{$a}_".date('ymdhis').".jpg");
}
}
?>
you could do the same with bash on linux of course rather than calling php, whichever you are more comfortable with