Okay here is my first attempt at modifying that script to just do an upgrade, would some on mind looking over it and checking to see if it makes sense and will work? It purely a copy of the original script with lines removed and updated the bpcver variable to equal 4.3.1
#!/bin/bash set -e bpcver=4.3.1 bpcxsver=0.59 rsyncbpcver=3.1.2.0 # Fetch and install latest stable releases wget https://github.com/backuppc/backuppc-xs/releases/download/$bpcxsver/BackupPC-XS-$bpcxsver.tar.gz wget https://github.com/backuppc/rsync-bpc/releases/download/$rsyncbpcver/rsync-bpc-$rsyncbpcver.tar.gz wget https://github.com/backuppc/backuppc/releases/download/$bpcver/BackupPC-$bpcver.tar.gz tar -zxf BackupPC-XS-$bpcxsver.tar.gz tar -zxf rsync-bpc-$rsyncbpcver.tar.gz tar -zxf BackupPC-$bpcver.tar.gz cd BackupPC-XS-$bpcxsver perl Makefile.PL make make test make install cd ../rsync-bpc-$rsyncbpcver ./configure make make install cd ../BackupPC-$bpcver # When upgrading, use this instead: ./configure.pl --batch --config-path /etc/BackupPC/config.pl # The following is good also when upgrading, unless you have modified the files yourself cp httpd/BackupPC.conf /etc/apache2/conf-available/backuppc.conf sed -i "/deny\ from\ all/d" /etc/apache2/conf-available/backuppc.conf sed -i "/deny\,allow/d" /etc/apache2/conf-available/backuppc.conf sed -i "/allow\ from/d" /etc/apache2/conf-available/backuppc.conf # Note that changing the apache user and group (next two commands) could cause other services # provided by apache to fail. There are alternatives if you don't want to change the apache # user: use SCGI or a setuid BackupPC_Admin script - see the docs. sed -i "s/export APACHE_RUN_USER=www-data/export APACHE_RUN_USER=backuppc/" /etc/apache2/envvars sed -i "s/export APACHE_RUN_GROUP=www-data/export APACHE_RUN_GROUP=backuppc/" /etc/apache2/envvars echo '<html><head><meta http-equiv="refresh" content="0; url=/BackupPC_Admin"></head></html>' > /var/www/html/index.html a2enconf backuppc a2enmod cgid service apache2 restart cp systemd/init.d/debian-backuppc /etc/init.d/backuppc chmod 755 /etc/init.d/backuppc update-rc.d backuppc defaults chmod u-s /var/www/cgi-bin/BackupPC/BackupPC_Admin touch /etc/BackupPC/BackupPC.users sed -i "s/$Conf{CgiAdminUserGroup}.*/$Conf{CgiAdminUserGroup} = 'backuppc';/" /etc/BackupPC/config.pl sed -i "s/$Conf{CgiAdminUsers}.*/$Conf{CgiAdminUsers} = 'backuppc';/" /etc/BackupPC/config.pl chown -R backuppc:backuppc /etc/BackupPC service backuppc start On Tue, Jul 16, 2019 at 3:26 PM Johan Ehnberg <jo...@molnix.com> wrote: > Hello Mark, > > There are notes in the script for upgrading. > > If anyone has the time, the upgrade parts could easily be made into a > script of their own or even better, as an argument to the script. > > Our orchestration uses a separate approach, but I might contribute that as > well as an option if I find the time. > > Best regards, > > Johan Ehnberg > > > On 7/16/19 6:20 AM, Mark Wass wrote: > > Hi Guys > > Is there a How-To on upgrading from 4.3.0 to 4.3.1? > > I'm running 4.3.0 on Ubuntu 18.04 LTS and I installed originally from the > script on this page. > > > https://github.com/backuppc/backuppc/wiki/Installing-BackupPC-4-from-tarball-or-git-on-Ubuntu > > Thanks > Mark > > > _______________________________________________ > BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > > -- > *Johan Ehnberg* Founder, CEO Molnix Oy > jo...@molnix.com +358 50 320 96 88 molnix.com > > > *The contents of this e-mail and its attachments are for the use of the > intended recipient only, and are confidential and may contain legally > privileged information. If you are not the intended recipient or have > otherwise received the e-mail in error, please notify the sender by > replying to this e-mail immediately and then delete it immediately from > your system. Any dissemination, distribution, copying or use of this > communication without prior and explicit permission of the sender is > strictly prohibited.* > > *Please consider the environment - do not print this e-mail unless you > really need to.* > _______________________________________________ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ >
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/