split incremental_backup script in local and remote version