Re: [BackupPC-users] Feature request: Restore Search across all shares/backups

2017-06-14 Thread Craig Barratt via BackupPC-users
Les is right for 3.x.

For 4.x the files are not stored in the backup tree.  So you'll need to use
BackupPC_ls -R, or you could also grep the XferLOG.nnn.z files (although
the format and what appears or not depends on the XferMethod).

Examples:

BackupPC_ls -R -h HOST -n NUM -s SHARE / | egrep FILENAME

BackupPC_zcat TOPDIR/pc/HOST/XferLOG.NUM.z | egrep FILENAME


For BackupPC_ls you'll need to write a script to iterate over every HOST,
backup NUM and SHARE.  Or you could use wildcards with BackupPC_zcat for
HOST and/or NUM.

I'd rather not build this into the CGI interface, since the running times
could be very long.

Craig

On Wed, Jun 14, 2017 at 10:46 AM, Les Mikesell 
wrote:

> On Wed, Jun 14, 2017 at 8:59 AM, Bob Katz  wrote:
> > Is it possible to design a search tool that will look for the occurrence
> of
> > a string in the file name across all shares/backups?
> >
> > It should come up with any versions of the file, last modified date, etc.
> > and what backup it is stored in. Ideally it should allow the user to
> > navigate to the file in the backup and then use the normal restore
> choices
> > to restore it.
> >
> >
> > Wouldn't that be nice? Sometimes we don't know which computer/host might
> > have had the file we're looking for and/or we want to go back to an old
> > version of that file.
> >
>
> You can sort-of accomplish that using 'find' on the command line at
> the top of the backup tree with a pattern that may need to allow for
> the filename changes used in the archive.But, I agree that having
> it as an option in the web interface would be great - and there it
> could even be aware of what host(s) the user is allowed to access.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
> 
> --
> 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/
>
--
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/


Re: [BackupPC-users] Feature request: Restore Search across all shares/backups

2017-06-14 Thread Les Mikesell
On Wed, Jun 14, 2017 at 8:59 AM, Bob Katz  wrote:
> Is it possible to design a search tool that will look for the occurrence of
> a string in the file name across all shares/backups?
>
> It should come up with any versions of the file, last modified date, etc.
> and what backup it is stored in. Ideally it should allow the user to
> navigate to the file in the backup and then use the normal restore choices
> to restore it.
>
>
> Wouldn't that be nice? Sometimes we don't know which computer/host might
> have had the file we're looking for and/or we want to go back to an old
> version of that file.
>

You can sort-of accomplish that using 'find' on the command line at
the top of the backup tree with a pattern that may need to allow for
the filename changes used in the archive.But, I agree that having
it as an option in the web interface would be great - and there it
could even be aware of what host(s) the user is allowed to access.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
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/


Re: [BackupPC-users] Migrate to new server

2017-06-14 Thread Johan Ehnberg

On 06/14/2017 06:08 PM, Tim Fora wrote:

Hi,

I have BackupPC-3.3.1-5.el6.x86_64 running on a VM (CentOS 6) using
external storage. We have a new storage box now running CentOS 7 with
local disks. I want to install BackupPC on the new box then migrate data
while both are running. What are some options to get this done?

Thanks,
Tim



Hi Tim,

There are three levels you can do this at while keeping both instances 
mostly running:


Block level: set up DBRD or similar.

Pool level: rsync your pool (slow) or send your filesystem (if supported).

Latest file level: use something like my script but sacrificing history:
https://johan.ehnberg.net/backuppc-pre-loading-seeding-and-migrating-moving-script

BackupPC does not have a facility to manage clustering though, so you 
will not be able to have both instances actively doing backups if you 
want to keep the pool.


If your clients are fast and your transfer method supports it, I would 
simply set up another instance that runs independently and in parallel, 
by only copying the configs to the new instance. Turn off automatic 
backups on the old and retire it according to your retention requirements.


Best regards,
Johan Ehnberg
--
Johan Ehnberg
jo...@molnix.com
+358503209688

Molnix Oy
molnix.com

--
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/


Re: [BackupPC-users] Upgrade from v4.0 to V4.1.3

2017-06-14 Thread Johan Ehnberg

On 06/14/2017 04:51 PM, Molly Hoffman wrote:
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.




Hi Molly,

I updated the wiki page with upgrading notes:

https://github.com/backuppc/backuppc/wiki/Installing-BackupPC-4-from-git-on-Ubuntu-Xenial-16.04-LTS

Essentially, the relevant difference is:
configure.pl --batch --config-path /etc/BackupPC/config.pl

There are also many steps you can skip since they do not relate to 
BackupPC version. See the comments for each script block.


Best regards,
Johan Ehnberg

--
Johan Ehnberg
jo...@molnix.com
+358503209688

Molnix Oy
molnix.com

--
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/


[BackupPC-users] Migrate to new server

2017-06-14 Thread Tim Fora
Hi,

I have BackupPC-3.3.1-5.el6.x86_64 running on a VM (CentOS 6) using
external storage. We have a new storage box now running CentOS 7 with
local disks. I want to install BackupPC on the new box then migrate data
while both are running. What are some options to get this done?

Thanks,
Tim


--
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/


[BackupPC-users] Upgrade from v4.0 to V4.1.3

2017-06-14 Thread Molly Hoffman
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/


[BackupPC-users] Feature request: Restore Search across all shares/backups

2017-06-14 Thread Bob Katz
Is it possible to design a search tool that will look for the occurrence 
of a string in the file name across all shares/backups?


It should come up with any versions of the file, last modified date, 
etc. and what backup it is stored in. Ideally it should allow the user 
to navigate to the file in the backup and then use the normal restore 
choices to restore it.



Wouldn't that be nice? Sometimes we don't know which computer/host might 
have had the file we're looking for and/or we want to go back to an old 
version of that file.



Thanks,



Bob


--

If you want good sound on your album, come to Bob Katz 407-831-0233 
DIGITAL DOMAIN MASTERING STUDIO Author: *Mastering Audio *Digital Domain 
Website  No trees were killed in the sending of 
this message. However a large number of electrons were terribly 
inconvenienced.


--
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/