One or more embodiments of the invention provide a method and device for adjusting
backup capacity, and the method comprises the steps: firstly obtaining historical data, related to the
backup capacity, of a
database in a target historical time period, and then generating
time sequence features arranged according to a
time sequence according to the historical data; model input data is generated through the
time sequence features and serves as input of a
hybrid model. After model input data are produced, the model input data are input into a
hybrid model for capacity prediction, so that the predicted capacity of the
database in the future time period is obtained, and the
hybrid model comprises a first model for
processing nonlinear short-term features and a second model for
processing linear long-term features; each model outputs a prediction result according to the model input data, and the output results of all the models are comprehensively calculated to obtain the prediction capacity of the
database output by the final
hybrid model in the future time period, so that the
backup capacity of the database in the future time period is dynamically adjusted according to the prediction capacity.