Skip to content

Instantly share code, notes, and snippets.

View 131's full-sized avatar
💭
working on cloudfs

François Leurent 131

💭
working on cloudfs
View GitHub Profile
@131
131 / Save huge directories using svn.md
Last active February 7, 2022 08:49
Save huge directories using svn

Saving big (100GB+) directories with lots of files under subversion will most probably fail (due to timeout/exeeded RAM consumption & co). Instead of One Big Failing Transaction, commit your data in chunks.

#!/bin/bash
# First, commit directory structure
# find -type d |  xargs  -d '\n' svn add --depth=empty