The LHCb experiment at CERN currently has two active projects on data preservation. The first one is a data dependency database, a system implemented as a graph database which tracks all information related to the LHCb data and its links to the software used to process them. In addition, it contains information about the compatibility between various software versions and the data. The second project is called CAP (CERN Analysis Preservation), which is a web-based portal that allows the logging of detailed information about an analysis from its inception to the publication. I would like to present these projects, their use cases and how they will help us rerun legacy software and reproduce old analyses in the future.