copy_indexes add option background support