Can someone tell me the steps to upgrade from 4.0 to 4.1.3 on Ubuntu 16.04.2?  
Do I need to remove v4.0?  When I installed v4.0 I used the attached script. I 
am having some issues with v4.0 and want to upgrade.

Thanks,

Molly L. Hoffman
Network Administrator
Devereux Advanced Behavioral Health - Florida


Devereux Advanced Behavioral Health - Unlocking Human Potential.
Please consider the environment before printing this e-mail.

This email (including any attached files) may contain confidential information 
and/or protected health information (PHI) intended solely for the use of 
Devereux Advanced Behavioral Health and the recipients named above. If you are 
not the intended recipient or the employee or agent responsible for delivering 
this message to the intended recipient, you are hereby notified that any 
review, transmission, distribution, printing or copying of this email and/or 
any attachments is strictly prohibited. If you have received this transmission 
in error, please immediately notify us by leaving a voice mail at 800-385-6353 
and permanently delete this email and any attachments. Unless specifically 
attributed, the opinions expressed within this email do not necessarily 
represent the official position of Devereux Advanced Behavioral Health.
#!/bin/bash
set -e
apt-get install -q -y apache2 apache2-utils libapache2-mod-perl2 
glusterfs-client par2 perl smbclient rsync tar gcc zlib1g zlib1g-dev 
libapache2-mod-scgi rrdtool git make perl-doc libarchive-zip-perl 
libfile-listing-perl libxml-rss-perl libcgi-session-perl
echo -n "Give password or leave empty to generate one: "
read -s PASSWORD
echo
if [[ $PASSWORD == "" ]]; then
  apt-get -qq -y install pwgen
  PASSWORD=`pwgen -s -1 32`
  echo "Generated password: $PASSWORD"
else
  echo "Password given is: $PASSWORD"
fi
echo "$PASSWORD" > /root/password
chmod 600 /root/password
mkdir /srv/backuppc
ln -s /srv/backuppc/ /var/lib/backuppc
adduser --system --home /var/lib/backuppc --group --disabled-password --shell 
/bin/false backuppc
echo "backuppc:$PASSWORD" | sudo chpasswd backuppc
mkdir -p /var/lib/backuppc/.ssh
chown -R backuppc:backuppc /var/lib/backuppc/.ssh
echo -e "BatchMode yes\nStrictHostKeyChecking no" > 
/var/lib/backuppc/.ssh/config
#
# fetch the latest code for backuppc, backuppc-xs, and rsync-bpc.  
Alternatively,
# you can fetch the latest tar ball releases from:
#     https://github.com/backuppc/backuppc/releases
#     https://github.com/backuppc/backuppc-xs/releases
#     https://github.com/backuppc/rsync-bpc/release
# If you start with the released tar ball, instead of git clone and makeDist,
# just use "tar zxf BackupPC-4.0.0.tar.gz" and then cd BackupPC-4.0.0.
# (Similarly for backuppc-xs and rsync-bpc.)
#
git clone https://github.com/backuppc/backuppc.git
git clone https://github.com/backuppc/backuppc-xs.git
git clone https://github.com/backuppc/rsync-bpc.git
cd backuppc-xs
perl Makefile.PL
make
make test
make install
cd ../rsync-bpc
./configure
make
make install
cd ../backuppc
./makeDist --nosyntaxCheck --releasedate "`date -u "+%d %b %Y"`" --version 
4.0.0git
tar -zxf dist/BackupPC-4.0.0git.tar.gz
cd BackupPC-4.0.0git
./configure.pl --batch --cgi-dir /var/www/cgi-bin/BackupPC --data-dir 
/var/lib/backuppc --hostname backuppc --html-dir /var/www/html/BackupPC 
--html-dir-url /BackupPC --install-dir /usr/local/BackupPC
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
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
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
echo $PASSWORD | htpasswd -i /etc/BackupPC/BackupPC.users backuppc
/etc/init.d/backuppc start
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/

Reply via email to