[BackupPC-users] BackupPC_restore feature request

2021-02-03 Thread backuppc
Hi Craig,
I have been playing around with restoring backups from the command
line.

Unfortunately, the supplied CLI command BackupPC_restore does not have
much flexibility, so I have been using "raw" shell calls to rsync_bpc
to allow me to set various restore parameters.

For example, hairy lines like:

(NUM=27; RESTORE=/mnt/temp2; SHARE=/; HOST=myhost; TOPDIR=/var/lib/backuppc; 
DRYRUN=; FILESFROM=; MERGE="${NUM}/3/4"; LOG=1; sudo 
${RSYNCBPC:-/usr/bin/rsync_bpc} --bpc-top-dir $TOPDIR --bpc-host-name $HOST 
--bpc-share-name $SHARE --bpc-bkup-num $NUM --bpc-bkup-comp 3 --bpc-bkup-merge 
$MERGE --bpc-attrib-new --bpc-log-level $LOG -e /usr/bin/sudo\ -h 
--rsync-path=/usr/bin/rsync --recursive --super --protect-args --numeric-ids 
--perms --owner --group -D --times --links --hard-links --delete --partial 
${DRYRUN:+--dry-run} --log-format=log:\ %o\ %i\ %B\ %8U,%8G\ %9l\ %f%L --sta\
ts --acls --xattrs ${FILESFROM:+--files-from=$FILESFROM} / 
localhost:${RESTORE%/} >| /tmp/log.restore 2>&1)

It would be great if BackupPC_restore could allow other optional command line 
input parameters like:
- Backup number
  (since you may want to restore from something other than the latest backup)

- Alternative host/hostIP and/or root location for the restore
  (since you often may want to restore to either another host or to another 
part of your directory tree
   I find this useful to test a restore rather than risking clobbering your 
existing tree)

- Ability to restore multiple files/directories (either from the command line 
or potentially from a file)

- Ability to restore an entire host or an entire share

- Ability to override TopDir
  (useful if you are restoring from an old copy of your backuppc backups)

- Ability to do a 'dry-run' to see what will be restored before you do it
  (again to be sure you are not mistakenly restoring or clobbering files)

Note that my crude command line above allows me to do some of these 
substitutions by hacking directly
into the rsync command generated by BackupPC_retore -- but it is brittle and 
very non-elegant :)


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Which filesystem for external backup drive?

2021-02-03 Thread Kenneth Porter

On 2/3/2021 6:54 PM, backu...@kosowsky.org wrote:

I just built backuppc for my Raspberry PI and ordered an external SSD
drive that I plan to format in btrfs.


I'm using CentOS, and it looks like Red Hat is dropping btrfs in favor 
of other filesystems:


https://access.redhat.com/discussions/3138231

https://news.ycombinator.com/item?id=14907771


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Which filesystem for external backup drive?

2021-02-03 Thread backuppc


Kenneth Porter wrote at about 18:11:05 -0800 on Wednesday, February 3, 2021:
 > I'm deploying a system with an external (USB) 1.5 TB drive. How should I 
 > format it? (Ie. which filesystem is best for this?) I expect to mount it to 
 > /mnt/BackupPC and then loopback mount a subdirectory to /var/lib/BackupPC. 
 > (Another subdirectory will get a copy of /etc/BackupPC.)

I just built backuppc for my Raspberry PI and ordered an external SSD
drive that I plan to format in btrfs.


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] OT: To top-post or not?

2021-02-03 Thread Kenneth Porter
Top-posting is for email systems where people continually join a thread and 
there's no central archive to consult to see what has gone on before. It's 
suitable for business correspondence.


Mailing lists and newsgroups are different: They have archives where new 
list members can look to see the history of a thread. The only thing you 
should quote in your reply is enough context to make it clear what in the 
previous post you're replying to. Interleave your reply with the context 
hints you quote. But chop out everything else. We've already read it. We 
don't need another copy.


I filter mailing list messages to a seperate folder for each list and my 
mail clients know how to thread a discussion into a tree structure. It 
keeps my inbox uncluttered and I can easily understand the structure of a 
converstation.




___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


[BackupPC-users] Which filesystem for external backup drive?

2021-02-03 Thread Kenneth Porter
I'm deploying a system with an external (USB) 1.5 TB drive. How should I 
format it? (Ie. which filesystem is best for this?) I expect to mount it to 
/mnt/BackupPC and then loopback mount a subdirectory to /var/lib/BackupPC. 
(Another subdirectory will get a copy of /etc/BackupPC.)




___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] OT: To top-post or not?

2021-02-03 Thread Les Mikesell
On Wed, Feb 3, 2021 at 1:41 PM  wrote:
>
> Paul Leyland wrote at about 18:59:24 + on Wednesday, February 3, 2021:
>  > I have, very reluctantly, been forced to accept top-posting.
>
> Sadly, that has become too true. My solution is that a short answer is
> easier/simpler to top-post -- but any serious and in-depth dialog is
> much better off being woven into the earlier posting so that one can
> see context and not have to rewrite or reread.

I'd guess that these days enough people use gmail's web interface that
collapses 'already read' content to ellipses that you can ignore or
expand that it doesn't really matter whether the new part is at the
top or bottom.  But yes if you need to reply to different parts it
should be interwoven.

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


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] OT: To top-post or not?

2021-02-03 Thread Paul Leyland
I have, very reluctantly, been forced to accept top-posting.

On 03/02/2021 14:09, Sorin Srbu wrote:
> Hello all,
>
> Years ago when I last worked daily, and before my timeout, with BPC, the
> deal was to not top post. There were usually corrective comments if somebody
> forgot him/herself and in no uncertain terms.
>
> Has that changed over the years, and one can now top-post without
> infuriating and invoking the wrath of the senior members and list admins on
> this list?
> Seeing as how most mailers now top-post per default, I thought I'd ask...
>
> Thanks for any insights.
>
>
>
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:https://github.com/backuppc/backuppc/wiki
> Project: https://backuppc.github.io/backuppc/

I much prefer adding new material at the end because it gives my readers
a chance to note about that which I am commenting.

Further, ending a sentence with a preposition is something up with which
I will not put.

8-)


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] new to BackupPC

2021-02-03 Thread Arnar Þórarinsson
Richard,
Packages came from epel repository for CentOS 8.
https://epel.hysing.is/8/Everything/x86_64/Packages/b/
seems they where uploaded/created 2020-06-22

BackupPC   x86_64 4.4.0-1.el8   
   epel  489 k
BackupPC-XSx86_64 0.62-1.el8
   epel  107 k

Without doing a complete reinstall of OS I can‘t be sure if a reinstall of 
BackupPC will correct the problems.  Might do that once I have tested the 
features of BackupPC more.

Með kveðju / Best regards,
Arnar Þórarinsson
ATM Kerfi | Deildarstjóri
ATM Systems | Manager

Sími / Tel: +354 424 4000
Beint / Direct: +354 424 5232
Farsími / Mobile: +354 861 2871
[cid:image001.png@01D6FA47.C63B85E0]
Isavia ANS ehf.
arnar.thorarins...@isavia.is
www.isavia.is

From: Richard Shaw 
Sent: miðvikudagur, 3. febrúar 2021 15:04
To: General list for user discussion, questions and support 

Subject: Re: [BackupPC-users] new to BackupPC

On Wed, Feb 3, 2021 at 7:44 AM Arnar Þórarinsson 
mailto:arnar.thorarins...@isavia.is>> wrote:
Hi all,
BackupPC install via EPEL
# rpm -qa | grep -i backup
BackupPC-4.4.0-1.el8.x86_64
BackupPC-XS-0.62-1.el8.x86_64

Also, dnf info backuppc does suggest looking at README.setup found under 
/usr/share/doc/BackupPC/
Using su -s /bin/bash -l backuppc I can generate ssh keys and set up 
passwordless logins to clients.

Still the wrong ownership of /var/lib/BackupPC is an issue with the install 
packages.

No, I was trying to make that clear in my original response. The package I 
build sets it correctly. I still don't know how yours was different.

https://src.fedoraproject.org/rpms/BackupPC/blob/rawhide/f/BackupPC.spec#_327


Fixed with chown -R backuppc.root /var/lib/BackupPC , problem with that is 
SELINUX, you will have problems with SELINUX and have to do some selinux stuff 
for everything to work properly, and yes SELINUX should always be enabled.
For me the following worked.

I'm glad it worked but it should not be necessary as the package should also 
set the selinux permissions correctly.

https://src.fedoraproject.org/rpms/BackupPC/blob/rawhide/f/BackupPC.spec#_118

I would double check where the packages are coming from and first try 
reinstalling them.

# dnf reinstall BackupPC

Thanks,
Richard
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] new to BackupPC

2021-02-03 Thread Richard Shaw
On Wed, Feb 3, 2021 at 7:44 AM Arnar Þórarinsson <
arnar.thorarins...@isavia.is> wrote:

> Hi all,
>
> BackupPC install via EPEL
>
> # rpm -qa | grep -i backup
>
> BackupPC-4.4.0-1.el8.x86_64
>
> BackupPC-XS-0.62-1.el8.x86_64
>
>
>
> Also, dnf info backuppc does suggest looking at README.setup found under
> /usr/share/doc/BackupPC/
>
> Using su -s /bin/bash -l backuppc I can generate ssh keys and set up
> passwordless logins to clients.
>
>
>
> Still the wrong ownership of /var/lib/BackupPC is an issue with the
> install packages.
>

No, I was trying to make that clear in my original response. The package I
build sets it correctly. I still don't know how yours was different.

https://src.fedoraproject.org/rpms/BackupPC/blob/rawhide/f/BackupPC.spec#_327


Fixed with chown -R backuppc.root /var/lib/BackupPC , problem with that is
> SELINUX, you will have problems with SELINUX and have to do some selinux
> stuff for everything to work properly, and yes SELINUX should always be
> enabled.
>
> For me the following worked.
>

I'm glad it worked but it should not be necessary as the package should
also set the selinux permissions correctly.

https://src.fedoraproject.org/rpms/BackupPC/blob/rawhide/f/BackupPC.spec#_118

I would double check where the packages are coming from and first try
reinstalling them.

# dnf reinstall BackupPC

Thanks,
Richard
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


[BackupPC-users] OT: To top-post or not?

2021-02-03 Thread Sorin Srbu
Hello all,

Years ago when I last worked daily, and before my timeout, with BPC, the
deal was to not top post. There were usually corrective comments if somebody
forgot him/herself and in no uncertain terms.

Has that changed over the years, and one can now top-post without
infuriating and invoking the wrath of the senior members and list admins on
this list?
Seeing as how most mailers now top-post per default, I thought I'd ask...

Thanks for any insights.

-- 

Kind regards,
Sorin Srbu

Find my OpenPGP public key here:
https://cloud.srbu.se/index.php/s/KeEsCCDsG7PZG7N




signature.asc
Description: This is a digitally signed message part
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] new to BackupPC

2021-02-03 Thread Arnar Þórarinsson
Hi all,
BackupPC install via EPEL
# rpm -qa | grep -i backup
BackupPC-4.4.0-1.el8.x86_64
BackupPC-XS-0.62-1.el8.x86_64

Also, dnf info backuppc does suggest looking at README.setup found under 
/usr/share/doc/BackupPC/
Using su -s /bin/bash -l backuppc I can generate ssh keys and set up 
passwordless logins to clients.

Still the wrong ownership of /var/lib/BackupPC is an issue with the install 
packages.
Fixed with chown -R backuppc.root /var/lib/BackupPC , problem with that is 
SELINUX, you will have problems with SELINUX and have to do some selinux stuff 
for everything to work properly, and yes SELINUX should always be enabled.
For me the following worked.

# /sbin/restorecon -R -v /var/lib/BackupPC

# cat my-BackupPCAdmin.te

module my-BackupPCAdmin 1.0;

require {
type httpd_t;
type unlabeled_t;
   class file { getattr read write };
class dir read;
}

#= httpd_t ==
allow httpd_t unlabeled_t:dir read;
allow httpd_t unlabeled_t:file { getattr read write };

# semodule -X 300 -i my-BackupPCAdmin.pp


Will look into 
https://kifarunix.com/how-to-install-and-configure-backuppc-as-a-backup-server-on-ubuntu-18-04/#backuplinuxwithbackuppc
 for configuring clients with rsync

Með kveðju / Best regards,
Arnar Þórarinsson
ATM Kerfi | Deildarstjóri
ATM Systems | Manager

Sími / Tel: +354 424 4000
Beint / Direct: +354 424 5232
Farsími / Mobile: +354 861 2871
[cid:image001.png@01D6FA2E.247538F0]
Isavia ANS ehf.
arnar.thorarins...@isavia.is
www.isavia.is

From: Systems 
Sent: miðvikudagur, 3. febrúar 2021 07:42
To: General list for user discussion, questions and support 

Subject: Re: [BackupPC-users] new to BackupPC

Have a look at technical.network , there is a guide there that mainly uses 
backuppc user (not root) to backup clients via rsync.
Muhammad Ibrahim
Director | Broadband9
ibrahim@broadband9.com01706404099
http://broadband9.co.uk
206a Business First, Davyfield Road,


From: Sorin Srbu mailto:sorin.s...@gmail.com>>
Sent: Wednesday, February 3, 2021 7:28:11 AM
To: General list for user discussion, questions and support 
mailto:backuppc-users@lists.sourceforge.net>>
Subject: Re: [BackupPC-users] new to BackupPC

On Tue, 2021-02-02 at 17:09 +, Arnar Þórarinsson wrote:
> Hello all,
> I'm a new user of BackupPC with some questions (moving away from Amanda).
> OS: CentOS 8.3
> BackupPC version 4.4.0
>
> I followed the guide on
> https://kifarunix.com/install-and-configure-backuppc-on-centos-8/
> and all looks good but...
> I don't like using the root user on the client side for backups, never allow 
> root to login via ssh.
> So how do I generate ssh keys for the backuppc user on the server ? The user 
> backuppc does not own the /var/lib/BackupPC dir so it can't generate the keys.

Hello!

Something's fishy there, I followed the same guide recently (although for
Ubuntu) and for me /var/lib/backuppc is owned by backuppc.

Looking at the Backuppc-Ubuntu guide there is a step adding a backuppc user
and setting a homedir as /var/lib/backuppc.
https://kifarunix.com/install-and-setup-backuppc-server-on-ubuntu-20-04/

Maybe the guide for CentOS needs to be tweaked a bit?
Otherwise, why not just chown the folder to the right permissions?


--

Kind regards,
Sorin Srbu

Find my OpenPGP public key here:
https://cloud.srbu.se/index.php/s/KeEsCCDsG7PZG7N
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] new to BackupPC

2021-02-03 Thread Systems
Have a look at technical.network , there is a guide there that mainly uses 
backuppc user (not root) to backup clients via rsync.

Muhammad Ibrahim
Director | Broadband9

ibrahim@broadband9.com01706404099
http://broadband9.co.uk
206a Business First, Davyfield Road,


From: Sorin Srbu 
Sent: Wednesday, February 3, 2021 7:28:11 AM
To: General list for user discussion, questions and support 

Subject: Re: [BackupPC-users] new to BackupPC

On Tue, 2021-02-02 at 17:09 +, Arnar Þórarinsson wrote:
> Hello all,
> I‘m a new user of BackupPC with some questions (moving away from Amanda).
> OS: CentOS 8.3
> BackupPC version 4.4.0
>
> I followed the guide on
> https://kifarunix.com/install-and-configure-backuppc-on-centos-8/
> and all looks good but…
> I don‘t like using the root user on the client side for backups, never allow 
> root to login via ssh.
> So how do I generate ssh keys for the backuppc user on the server ? The user 
> backuppc does not own the /var/lib/BackupPC dir so it can‘t generate the keys.

Hello!

Something's fishy there, I followed the same guide recently (although for
Ubuntu) and for me /var/lib/backuppc is owned by backuppc.

Looking at the Backuppc-Ubuntu guide there is a step adding a backuppc user
and setting a homedir as /var/lib/backuppc.
https://kifarunix.com/install-and-setup-backuppc-server-on-ubuntu-20-04/

Maybe the guide for CentOS needs to be tweaked a bit?
Otherwise, why not just chown the folder to the right permissions?


--

Kind regards,
Sorin Srbu

Find my OpenPGP public key here:
https://cloud.srbu.se/index.php/s/KeEsCCDsG7PZG7N
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/