In a medium pot over medium-high heat, pour in the olive oil. Add the onions and cook until lightly browned, about 5 minutes. Add the garlic and season with salt and pepper, to taste. Give it a stir and cook for another minute. Add the tomatoes, sugar, and basil. Reduce the heat a bit and simmer for 10 to 15 minutes.
Properly handled sterilized equipment will keep canned foods in good condition for one year. Making sure hands, equipment and surfaces in your canning area are clean is the first step in canning. Tips: Jars should be made from glass and free of any chips or cracks. Preserving or canning jars are topped with glass, plastic or metal lids that have a rubberlike seal. Two-piece metal lids are most common. To prepare jars before filling: Wash jars with hot, soapy water, rinse them well and arrange them open-side up, without touching, on a tray. To sterilize jars, boil them in a large saucepan, covered with water, for 10 minutes. Jars have to be sterilized only if the food to be preserved will be processed for less than 10 minutes in a boiling-water bath or pressure canner. To sterilize jars, boil them in a large saucepan, covered with water, for 10 minutes. Follow manufacturer's instructions for cleaning and preparing lids and bands. Use tongs or jar lifters to remove hot sterilized jars from the boiling water. Be sure the tongs are sterilized too: Dip the tong ends in boiling water for a few minutes before using them. All items used in the process of making jams, jellies, preserves and pickles must be clean, including any towels and especially your hands. After the jars are prepared, you can preserve the food. It is important to follow any canning and processing instructions included in the recipe and refer to USDA guidelines about the sterilization of canned products. Find Information information on canning can be found at the National Center for Home Food Preservation website: http://nchfp.uga.edu/.