Backing up index and main