I understand your point and have done similar setup. I've first started
using a local svnadmin hotcopy to create a clean and safe copy of my
repository, and then, rsynced this folder to my remote server. As I can
handle a downtime on my svn server (in the middle of the night), I've
switched to shutting down the server, and just rsyncing the /var/lib/svn
sub-folders. This saved a step, a loop, and some disk usage on my local
As an extra-layer of security, what you might consider too, on your
cold-backup NAS system, is to set up a rolling backup strategy scheme. I
was afraid of a corruption of my repositories, for which ever reason, but
mostly from a mistake from my own self. Having multiple copies on my cold
storage helps preventing it. Just using the day of the week while selecting
which folder you want to rsync your files too makes you a 7 days rolling
Le mer. 13 janv. 2021 à 12:16, Bo Berglund <bo.berglund_at_gmail.com> a écrit :
> I would like to set up a cron job to backup the repositories on an svn
> server to
> a Synology NAS.
> The repositories reside in /var/lib/svn and comprise about 6 Gb worth of
> in 12 different directories.
> These are svnsync:ed nightly from our main SVN server in the main office
> the world as a backup of the development activities there.
> The main svn server is VisualSvn on Windows Server 16 if that matters. The
> svnsync has worked fine for 2+ years since I set it up.
> The backup SVN server runs on an Ubuntu 18.4 LTS server in my home network
> on that network I also have a Synology NAS, which I want to use as a 3rd
> backup for the SVN repositories in case the Ubuntu server here crashes.
> I got a problem with it a few days ago when we had a power outage and the
> box did not boot properly when power returned. Now fixed but it raised the
> concern over backup security.
> I have now set up an NFS connection between the Ubuntu server and the
> NAS so I have a target dir in Ubuntu in /nfs/backup where I can write the
> So what I had in mind is to somehow keep a copy of the repository files on
> nfs share but I am not sure what command would be suitable to perform this
> I could use tar but that would be complex since there are certainly not
> files that change from one day to the other. Only changed files should be
> to reduce the time of backup.
> Or else perhaps rsync, provided it knows which files have changed and
> which have
> not etc.
> I am a user of Ubuntu Linux for some of my work and have had to learn the
> of managing Linux, but I am not versed in these actions. Daily I am a
> I don't know if some actions should be done towards svn on the ubuntu
> server in
> order to safely copy the files either...
> Please advice...
> Bo Berglund
> Developer in Sweden
Received on 2021-01-13 12:59:31 CET