User Tools

Site Tools


software:dailydata:rsbackup:rsbackup_client_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:dailydata:rsbackup:rsbackup_client_installation [2021/10/03 20:41] – created rodolicosoftware:dailydata:rsbackup:rsbackup_client_installation [2021/10/10 15:52] (current) – [Manually edit config file] rodolico
Line 8: Line 8:
 ===== Grab the project and move files around ===== ===== Grab the project and move files around =====
 <code bash> <code bash>
 +# make sure subversion is installed
 +apt install -y subversion mpack gzip
 +# create a directory to put rsbackup_client into
 mkdir -p /opt/camp/rsbackup mkdir -p /opt/camp/rsbackup
 cd /opt/camp/rsbackup cd /opt/camp/rsbackup
 +# get the two things we need from the subversion repository
 svn co http://svn.dailydata.net/svn/rsbackup/tags/stable/rsbackup_client svn co http://svn.dailydata.net/svn/rsbackup/tags/stable/rsbackup_client
 svn co http://svn.dailydata.net/svn/rsbackup/tags/stable/rsbackup_lib svn co http://svn.dailydata.net/svn/rsbackup/tags/stable/rsbackup_lib
 +# fix an issue with the repo where the name is wrong
 mv /opt/camp/rsbackup/rsbackup_client/rsbackup /opt/camp/rsbackup/rsbackup_client/rsbackup_client mv /opt/camp/rsbackup/rsbackup_client/rsbackup /opt/camp/rsbackup/rsbackup_client/rsbackup_client
 +# Copy our sample config file to the config directory
 mkdir -p /etc/camp/rsbackup_client mkdir -p /etc/camp/rsbackup_client
 cp /opt/camp/rsbackup/rsbackup_client/rsbackup.conf.example /etc/camp/rsbackup_client/rsbackup_client.conf cp /opt/camp/rsbackup/rsbackup_client/rsbackup.conf.example /etc/camp/rsbackup_client/rsbackup_client.conf
-apt install -y mpack gzip+# make an ssh key if one does not exist 
 +# just hit enter anytime a question pops up
 if [ ! -f /root/.ssh/id_rsa.pub ] ; then ssh-keygen -t rsa -b 4096 ; fi if [ ! -f /root/.ssh/id_rsa.pub ] ; then ssh-keygen -t rsa -b 4096 ; fi
 </code> </code>
  
 ===== Fix some issues with the "stable" version ===== ===== Fix some issues with the "stable" version =====
-Edit /etc/camp/rsbackup_client/rsbackup_client+Edit /opt/camp/rsbackup/rsbackup_client/rsbackup_client
 Add <code perl>my $transports;</code> at line 144 Add <code perl>my $transports;</code> at line 144
  
Line 49: Line 56:
 edit config file edit config file
 joe /etc/camp/rsbackup_client/rsbackup_client.conf joe /etc/camp/rsbackup_client/rsbackup_client.conf
 +
 +Change the following values
 +  - dry run to true (remove comment)
 +  - $MAIL_TO to your backup report e-mail
 +  - $BACKUP_SERVER = 'username@backup.server';
 +  - $PATH_ON_SERVER = '/root/backup/path';
 +  - $MY_NAME
 +  - $CLIENT_NAME
 +  - @DIRS_TO_BACKUP = ('/etc', '/root', '/home', '/opt'); 
 +  - $LOGDIR
 +  - Near bottom (line 103), change the ssh port if necessary
  
 ===== Tell server to accept stuff from us ===== ===== Tell server to accept stuff from us =====
software/dailydata/rsbackup/rsbackup_client_installation.1633311703.txt.gz · Last modified: 2021/10/03 20:41 by rodolico