modified backup script to use file locking on local backups.