[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Backup using ZFS Snapshots

From: Andrew Martin <amartin_at_xes-inc.com>
Date: Tue, 13 Dec 2016 15:17:53 -0600 (CST)

Hello,

I am running a Subversion 1.9.3 server on Ubuntu 16.04. I currently use
svnadmin hotcopy to safely backup the SVN repositories, but since the
repositories are now hosted on a ZFS dataset, I would like to utilize ZFS's
snapshot capabilities to create atomic, point-in-time backups of the
repositories. My plan to do this is as follows:

1. create zfs snapshot
2. clone zfs snapshot and mount at a temporary location
3. run svnadmin hotcopy from the mounted clone to safely create a backup
4. umount and destroy clone

My only concern is if a commit is in-progress when the zfs snapshot occurs,
would svnadmin hotcopy still be able to safely handle creating the backup?

Is this a safe procedure for creating backups?

Thanks,

Andrew Martin
Received on 2016-12-13 22:18:04 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.