script for save and restore file timestamp.