writing synchronization and backup script