I have to collect the shapefile of roads for the whole world for at least two years. Can anyone please guide me from where I can take this. Thanks
There is a possibility to download a planet dump with all history information: https://wiki.openstreetmap.org/wiki/Planet.osm/full
But please note that the date that a feature is added to OSM does not have to correspond to date a feature (a road in your case) was created in the real world. People are still tracing roads that might already exist for many years. Only in very well mapped areas, newly mapped roads correspond to newly created roads.