Marco Mazzaglia
Marco Mazzaglia

Reputation: 51

SVN dump size: is it possible to reduce it?

I have a huge SVN repository that I need to dump one time per week. The size of the repository is about 66 GB; after the command "svnadmin dump" the size is about 184 GB.

Is it possible to reduce the size of the dump, in order to have a safer backup procedure?

I have read that other people use the svnsync, but my goal is to bring out the data, so the best solution at the moment is "the dump + the copy of hooks and authorization data".

How do other people manage the backup of huge SVN repositories?

Thank you very much.

Upvotes: 5

Views: 2776

Answers (2)

Ivan Zhakov
Ivan Zhakov

Reputation: 4041

The --deltas option should help reduce repository dump size. I.e:

svnadmin dump --deltas REPO

Alternatively you may use svnadmin hotcopy or svnadmin hotcopy --incremental for backups.

Upvotes: 3

foxontherock
foxontherock

Reputation: 1842

I tried some scenarios for svn dump, and that's my results. Ok, they are not 66G, but the ratios should be the same.
Original folder size in windows: 255M (one repository)

case 1: Stop service, zip that folder, restart service: 180M
case 2: svnadmin dump + zip | dump size: 1408M (!!??) zip size: 410M
case 3: svnadmin dump --delta + zip | dump size: 550M, zip size 270M

What? svn dump, even with delta, is too large for our needs... and I can stop the service at night, so we'll use solution 1, just stop VisualSVN server, zip the repositor folder, and restart service.

If you prefer the "dump" method, you can 7zip it directly without intermediate file as explained in that other solution

Upvotes: 2

Related Questions