Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.



Get Started Now!

Automatic backup all SVN repositories

SVN(Subversion)

rajeshkumar created the topic: Automatic backup all SVN repositories
Here’s a shell script I use to automatically backup all of my subversion (svn) repositories.
I use Dropbox to put my backups in – it gives you easy to manage backups in the cloud for free (Free account gives you up to 2GB of storage) and pushing all backups to any machines on which you have the Dropbox setup. It’s very simple to get it working as a linux daemon with CLI only too.

#!/bin/bash
for repos in `ls /var/opt/svn/` ; do
RESPOS_DIR=/var/opt/svn/$repos;
svnadmin dump -q $RESPOS_DIR | gzip > ~backup/Dropbox/backups/svn/$repos.dump.gz;
chgrp backup $RESPOS_DIR;
done
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x