Discussions related to exporting backups to tape and backing up directly to tape.
Post Reply
jransis
Novice
Posts: 3
Liked: never
Joined: Jan 09, 2024 1:50 am
Full Name: Jianwei Xu
Contact:

What is the tape.file table in Veeam database (Postgre) used for? Can I delete the data from this table?

Post by jransis »

I backed up a large amount of data (about 140TB) to a tape library using Veeam B&R V12. After that, I noticed that the Veeam database grew to around 440GB in size.
my question:
1.Is this data size normal, and can I clean up this table? If so, how do I do it?
2.Can I optimize to reduce the database size when creating a tape job?
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: What is the tape.file table in Veeam database (Postgre) used for? Can I delete the data from this table?

Post by Mildur » 1 person likes this post

Hello Jianwei

What's the amount of files you are protecting by the File to Tape job?
The database size can get rather large if you protect billions of files.

Best,
Fabian
Product Management Analyst @ Veeam Software
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: What is the tape.file table in Veeam database (Postgre) used for? Can I delete the data from this table?

Post by david.domask » 1 person likes this post

Hi @jransis, the [Tape.files*] tables store information for File to Tape jobs. Deleting/truncating from these tables is very bad and will result in problems with recovery from tape. We can technically recover from it with a "fresh" database and cataloging the needed tapes, but this can be a long process.

Do not delete/truncate from the [Tape.files*] tables ever. It will not be reparable. Manual edits to the Veeam Configuration Database are not supported without guidance from Veeam Support.

File to Tape is fairly heavy on the database as noted here: https://helpcenter.veeam.com/docs/backu ... les-in-job

1. It's very likely normal with File to Tape
2. No, you cannot reduce it, size your infrastructure as per the User Guide link.
David Domask | Product Management: Principal Analyst
jransis
Novice
Posts: 3
Liked: never
Joined: Jan 09, 2024 1:50 am
Full Name: Jianwei Xu
Contact:

Re: What is the tape.file table in Veeam database (Postgre) used for? Can I delete the data from this table?

Post by jransis »

Best regards,
Fabian
I estimate there are approximately a few hundred million files and several million folders in my assessment. Then, I found that the 'tape.file' table contains close to 600 million rows of data.
jransis
Novice
Posts: 3
Liked: never
Joined: Jan 09, 2024 1:50 am
Full Name: Jianwei Xu
Contact:

Re: What is the tape.file table in Veeam database (Postgre) used for? Can I delete the data from this table?

Post by jransis »

david.domask wrote: Jan 09, 2024 11:15 am Hi @jransis, the [Tape.files*] tables store information for File to Tape jobs. Deleting/truncating from these tables is very bad and will result in problems with recovery from tape. We can technically recover from it with a "fresh" database and cataloging the needed tapes, but this can be a long process.

Do not delete/truncate from the [Tape.files*] tables ever. It will not be reparable. Manual edits to the Veeam Configuration Database are not supported without guidance from Veeam Support.

File to Tape is fairly heavy on the database as noted here: https://helpcenter.veeam.com/docs/backu ... les-in-job

1. It's very likely normal with File to Tape
2. No, you cannot reduce it, size your infrastructure as per the User Guide link.


Thank you for your excellent response, David.Domask!
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: What is the tape.file table in Veeam database (Postgre) used for? Can I delete the data from this table?

Post by Mildur »

Hi Jianwei
a few hundred million files and several million folders
For that source environment a large database is expected. How many files and folders you backup has a direct impact on the database. And each scheduled full backup will add up to the database size.

Update:
You can estimate the database size with the following formula:

Code: Select all

850 MByte = 1 million files/folder per version
An example with 500 Mil files/folders:

Code: Select all

500 Mil Files/Folders * 850 MByte, Change Rate of 0.5%= 480GB database
We recommend to schedule at least one full backup per month. Each full backup adds another 480GB to the database:

Code: Select all

500 Mil Files/Folders * 850 MByte, Change Rate of 0.5%, 2 monthly full backups with 60 days of retention = 960GB database

Best,
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests