It is important to start off by saying that biblical scholars themselves are not completely confident of who wrote many of the scriptures, and when Old Testament/Hebrew Bible scriptures were written because of the lack of ancient evidence, and because of philosophical controversies. There is no equivalent of Bhai Gurdas who was able to provide interpretation, history, and personal confirmation when talking about either testament. Bhaii Gurdas was a contemportary of 6 Gurus and supervised the compilation of the Adi Granth. No one quite like him existed to be the historical commentator for either Jewish or Christian scriptures. And we must remember that historical conquests of the ancient Jews led to the destruction of a lot of evidence.
Starting with the Hebrew Bible or Old Testament.
Jews and Christians consider the bible to have 3 parts that follow one another roughly in historical sequence. They are: Hat-Torah, Nebiim, wa-Kéthubim, i.e. The Law, the Prophets, and the Writings. But the historical age of the last two, Prophets and Writings, is still debated. Some scriptures in Prophets may be of the same age historically as other scriptures in the Writings: for example, the book of Kings and the book of Psalms. both connected to Kind David.
The scriptures in Hat Torah or The Law include: Genesis, Exodus, Leviticus, Numbers, Deuteronomy. These are the Books of Moses and are believed to be very ancient, revealed to Moses as the word of God by God, and handed down by Moses to scribes who recorded these revelations.
Jews consider all the scriptures in the book of Prophets as both prophesy and history, and include them all together: Josue, Judges, 1 and 2 Samuel, and 1 and 2 Kings and the prophets Isaias, Jeremias, Ezechiel.
In the Hebrew Bible, the Writings include: Psalms, Proverbs, Job, Canticle of Canticles, Ruth, Lamentations, Ecclesiastes, Esther, Daniel, Esdras, Nehemias.
Some many centuries before 700 BCE
It is believed that the 5 Books of Moses or Hat Torah were almost certainly written down by scribes shortly after the scriptures were revealed to Moses. It is documented in the Book of Deuteronomy that these revelations were written and stored in the sacred arc to be read to the people of Israel on important religious occasions by the priests.
The first written record of the Hat Torah was not found until it was discovered by Kind Josias in the Temple in 621 BCE. Prior to this date there is no record of a written code of laws having supreme and Divine authority. This book of laws according to historians was practically identical with the Book of Deuteronomy,
6th Century BCE - Palestinian Canon
The time when the remaining books were written down is less clear. The authors of the books of Prophets would certainly be the prophets themselves, and many of the books of Writings are believed authored by some of the same individuals. The earliest date given for the completion of the early Hebrew Bible, also known by Christians as the Palestinian Canon, is 596 BCE. This means that the books of Prophets and the books of Writings were compiled after the Hat-Torah or Books of Moses and through the 6th Century, before the birth of Jesus of Nazareth. The Palestinian Canon included all the books of the later Hebrew Bible except Isaiah 34:16; 2 Chronicles 29:30; Proverbs 25:1; Daniel 9:2.
5th Century BCE - Later documentation of the Hebrew Bible
It is believed that Esdras, a priest and scribe, and Nehemias, a governor under the Babylonian diaspora and oppression of the Jews, guided the completion of the Palestinian Canon no later than the 5th Century BC or BCE. Their leadership appears documented in the Book of Nehemiah. In addition the Persian king Artaxerxes Longiamanus (465-425 B.C) chronicled the books of the Hebrew Bible during his reign in the 5th Century BC or BCE.
2nd Century BCE through the Christian era
There are many Christian theologians who believe that many portions of the Writings may not have been completed until 165 BCE or later, and perhaps into the early Christian era in the 200 years following the birth and death of Jesus of Nazareth.
We can tackle the New Testament later. It is even more complicated because of the political controversies among Christians in the early centuries of Christianity. New Testament scriptures were translated into Greek (I don't remember when). Then..... Scriptures of the Jews and Christians were finally translated as one book and into one language by the Christian scholar, Jerome, in the 4th Century AD. The language he used was Latin.