[BackupPC-users] Find pc files from pool file name (checksum)

2024-08-23 Thread Kenneth Porter
Is there a script that can iterate over all pc files to find the ones 
that match a pool file? I've found some corrupt pool files and am trying 
to figure out my exposure. What does BPC do when it encounters such a 
bad file (when its checksum doesn't match its name) during the nightly scan?


Also, how does BPC know that a pool file is no longer in use? Is there a 
count of how many pc files are using it?





___
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] Backup corrupted, impossible to corect it

2024-08-20 Thread Kenneth Porter

On 8/20/2024 5:02 PM, backu...@kosowsky.org wrote:

You should be monitoring for disk corruption using various versions of
RAID or advanced file systems independent of backuppc.
Not sure why you would be blaming backuppc for that.


Is there a utility that can systematically check all the files? Since 
the filenames are checksums.


Finally, you should backup your backups. I run two independent

versions of backuppc in my home situation with one running on a RPi4.


This would make a great turn-key product. Or an app for a NAS. Small 
businesses need this.


___
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] Don't start new questions as replies (was: Progress indicator for longer backups)

2024-02-22 Thread Kenneth Porter
When posting a new question, don't use "reply list" in response to an 
existing question. This causes the new question to get displayed as a 
reply to the old one, and a threading mail client won't display it to 
readers who are ignoring the old question. So start a new message, not a 
reply, when posting a new question.





___
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] restoring pool

2024-01-26 Thread Kenneth Porter
In the future, I recommend putting the config on the external drive and 
mounting it to /etc/BackupPC.


I'd also recommend copying/tarring /etc/httpd or /etc/nginx (depending 
on which web server you use) to the external drive. That lets you bring 
up BackupPC quickly on a replacement server after a disaster.





___
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] BUG: When backups fail, the last successful backup number keeps incrementing

2023-09-06 Thread Kenneth Porter
--On Wednesday, September 06, 2023 3:52 PM + backu...@kosowsky.org 
wrote:



Sometimes when backups fail, the last good (incremental) backup number
gets continually incremented, so that after each failed (hourly)
backup attempt, this last good (incremental) backup sees its number
increased, leaving a growing numerical gap between it and the
penultimate (next to last) good backup.


Thanks for reporting that. I'd seen the incrementing number but didn't 
think to report it as I wasn't sure if it was intentional.






___
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] A Perl error?

2023-08-13 Thread Kenneth Porter

On 8/13/2023 8:34 AM, G.W. Haywood via BackupPC-users wrote:

First off I've never run BackupPC on anything except bare metal.  As
far as I can remember I haven't even tried to run it in a VM let alone
using Docker.  You're using somebody else's docker installation and I
can imagine that things could go wrong which have nothing to do with
BackupPC itself.  By using this form of installation you might be
making it easy to install BackupPC if it works, but I don't think it's
necessarily going to make it easy to troubleshoot things if it doesn't.
Looking at 'Dockerfile' in .../adferrand/docker-backuppc.git makes me
ask more questions than it answers for me. 


I concur with the rest of your analysis and questions. But I can see the 
value of a Docker image. It's no worse than running on some unusual 
Linux distro. Containers and VMs let an app isolate itself from the 
package choices of the host OS, relying solely on the kernel. It's why 
Snap is making inroads against traditional RPM and dpkg packaging 
systems. The older systems are fine for keeping the underlying system 
stable, but not so good for apps that use bleeding-edge libraries. The 
new container-based packaging helps separate responsibilities between OS 
libraries and app libraries.


Of course, the end-user/administrator then has to figure out where to 
send problem reports: To the distro/container maintainer or the app 
developer. This does look like a packaging issue and not an issue with 
the app. So I'd recommend opening an issue on GitHub against the 
container project.






___
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] Why not use Backuppc to backup server systems?

2023-08-09 Thread Kenneth Porter
When backing up the backup server, either mount /etc/BackupPC from the 
backup media (and back that up to another place) or keep a tarball with 
the latest settings, so you can easily load the media on another server 
to recreate the backup server.





___
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] Why not use Backuppc to backup server systems?

2023-08-09 Thread Kenneth Porter

On 8/9/2023 9:41 AM, to...@tuxteam.de wrote:
With the right DBMS and a little bit of setup, rsync is a perfectly 
fine way of backing up your databases [1]. Even with the wrong DBMS, 
all it takes is an SQL dump and backing up that (might be expensive 
with a couple o' 100M records, though).


Subversion (a version control system) is really a DBMS and has its own 
dump facility for backups. Each "record" is a version control 
generation. Now I'm wondering what the equivalent is for git, which has 
largely supplanted Subversion.





___
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] ssh+rsync and known_hosts

2023-07-23 Thread Kenneth Porter

On 7/23/2023 11:42 AM, backu...@kosowsky.org wrote:

While allowing root permissions to rsync is a pretty big security hole
itself, it is a little less drastic than simply logging in as root.


On my more sensitive machines, I run rsyncd in read-only mode with 
exclusions. I do wish rsyncd offered an only-one-filesystem feature so I 
don't have to remember all the mount points to exclude.





___
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] ssh+rsync and known_hosts

2023-07-23 Thread Kenneth Porter
--On Saturday, July 22, 2023 1:46 PM -0400 Paul Fox 
 wrote:



You should be trying to manually ssh from the backuppc account


You'd think, but that's the last thing I tried, not the first. I was trying 
to diagnose the problem by running BackupPC_dump (as user backuppc) and 
trying to debug from the resulting output. But the only clue there was the 
refused handshake. I thought the key was wrong, when it was the missing 
entry in known_hosts that was the problem.


With this exchange, perhaps the next person who runs into this will find 
the solution in the Google results.




___
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] ssh+rsync and known_hosts

2023-07-22 Thread Kenneth Porter
I'm setting up some Raspberry Pis and I set up BackupPC to back them up 
using ssh+rsync. I installed the key in ~backuppc/.ssh/authorized_keys but 
the initial backup was still failing. So I tried manually ssh'ing into the 
Pi and discovered I was hitting the question to add the Pi to known_hosts. 
I don't see this mentioned in the documentation. I'm not sure where it 
would even go, but I wanted to mention it as I'll likely forget this a year 
from now.




___
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] After upgrade from Debian Buster to Bookworm backuppc service will not start

2023-07-08 Thread Kenneth Porter
I'm wondering if the Debian package has any patches that make sense to 
apply upstream. It might have corrected some coding bugs that would 
cause those warnings with a newer version of Perl.


Someone more familiar than I with Debian packaging might want to check 
it out:


https://packages.debian.org/testing/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] BackupPC 4.4.0 on a RaspberryPi4 with rsync failure

2023-05-22 Thread Kenneth Porter

On 5/22/2023 7:48 AM, G.W. Haywood via BackupPC-users wrote:

There have been issues with differing versions of rsync, if you search
the list archives you'll find plenty of mention of that - you'll even
see the exact same error message which you posted. 


I concur. I've seen similar issues with interoperability between Cygwin 
32-bit rsync for 32-bit PCs and 64-bit rsync, when I was trying to move 
Thunderbird profiles to a new 64-bit Windows PC. I had to down-rev rsync 
to the 32-bit version to accomplish that task.


My Pi 4B is running 64-bit Bullseye from February. (I need to build a 
new microSD with the May release.) I'm able to back it up with BackupPC 
running on my CentOS 7 server. rsync on Bullseye is 3.2.3 protocol 
version 31. I haven't yet tried using a Pi as a BackupPC server, though.





___
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] Mailing list etiquette

2023-03-15 Thread Kenneth Porter

On 3/14/2023 3:25 PM, John wrote:
That's the sort of attitude that puts genuine people off asking for 
help on mailing lists. Rather than posting a cutting reply, why not 
simply ask for a little more information if that's what's needed? 
Please try to remember that English is not everyone's first language 
and at the end of the day we are all human and have feelings... 


Don't get discouraged. Apply Hanlon's Razor. Don't be put off by a terse 
or impatient reply. Remember that a lot of mailing list members are 
sysadmins who support a LOT of software and are subscribed to a LOT of 
lists. So the person asking a question should be doing some leg work 
before posting a question if one expects a useful response.


http://www.catb.org/~esr/faqs/smart-questions.html

https://en.wikipedia.org/wiki/Hanlon%27s_razor




___
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] Storing Identical Files?

2023-02-12 Thread Kenneth Porter
How might one identify a pool file associated with a real file? One 
could then verify that the same pool file represents both clients' 
copies of the same file. Should a simple md5sum of the files on the 
clients match that of the pool file?





___
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] Can't ping hostname from an IPv6-only backuppc instance

2023-02-08 Thread Kenneth Porter

On 2/8/2023 11:06 AM, Willy Manga wrote:
$Conf{Ping6Path} = '/bin/ping6'; 


Can you ping from a command prompt?

$ /bin/ping6 myHostname.example




___
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] New version of rsync

2023-01-31 Thread Kenneth Porter
I saw an rsync update for my CentOS 7 servers this week which inspired me 
to look at the upstream changes. I found that upstream's version (3.2.7) is 
a bit newer than the Cygwin version available on the BackupPC GitHub page 
(3.2.3). Has anyone tried to package up a new Cygwin version?


Changelog: 

Other useful links:







___
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] Backup strategy for rarely-connected clients

2023-01-31 Thread Kenneth Porter
--On Tuesday, January 31, 2023 3:47 PM -0600 Les Mikesell 
 wrote:



I think the perfect world example would be if there was a client you
could run so the computer could inform the server when it's up, perhaps
via a REST interface.



Why can't the user log into the web interface and start the backup at
appropriate times?   And if the admin gets the email that it hasn't
been backed up, he can call the guy up and remind him...


Both sound good. Or a hybrid, a "Back me up!" button on the desktop that 
signals the server when the user is done doing whatever critical thing 
warranted turning the machine on and it's available for routine 
maintenance. Such a button could also do OS updates and shut down the 
machine when done. (Or restart if updates pending, so they won't hold up 
the user the next time the machine is needed for some critical task.)


I could also get them to leave the machine plugged into the network and set 
up a timed startup, if the BIOS has that feature. Or wake-on-LAN. (ISTR 
someone posting WOL scripts to the mailing list to wake a machine up before 
a backup.)





___
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] Backup strategy for rarely-connected clients

2023-01-31 Thread Kenneth Porter
My company has a laptop that spends most of its time on a shelf, not in 
use. So I'm constantly seeing a daily BackupPC alert in my email that 
the machine hasn't been backed up recently.


How do others deal with this situation, with machines that are rarely 
connected to the LAN for backup?


An additional problem is that the machine might only be connected for a 
short period, so the server might miss that window and fail to back it 
in the short period it's connected, as it's busy with other backups.



___
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] Slow web page loading of admin pages

2023-01-18 Thread Kenneth Porter

On 1/18/2023 2:09 AM, Juergen Harms via BackupPC-users wrote:
My guess as to the reason for the bad performance of Firefox on an SBC 
is the limited size of RAM. Could that be an issue on your environment? 


That's quite possible. Chrome has a reputation for being a memory pig, 
and Edge is based on the same code.





___
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] Slow web page loading of admin pages

2023-01-18 Thread Kenneth Porter

On 1/18/2023 5:41 AM, G.W. Haywood via BackupPC-users wrote:
Two PCs at the office that are much newer than mine are very slow at 
loading the web pages. ...


My first thought is name resolution. 


That should affect the whole page equally. But the navigation pane at 
top left loads fast and then the rest takes a long time to appear.


___
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] Slow web page loading of admin pages

2023-01-17 Thread Kenneth Porter
I've never had a problem loading the website before to administer my three 
BPC 4 servers. It's been reasonably fast, even with a slower server.


This week I set up access for a user with a failed computer so that he can 
retrieve files while his PC is being repaired.


Two PCs at the office that are much newer than mine are very slow at 
loading the web pages. The upper left navigation pane loads immediately, 
but it can be minutes before the rest of the page renders. We tried both 
Edge and Chrome on Win10 x64. If we hit the back button and forward button, 
the whole page loads instantly. This also happens as we try to navigate 
down a backup's directory tree. Back and forward will cause the new 
directory to open, but it won't open the subtree on the first click. I went 
to my office and opened the same pages and they open instantly.


What should I look at to diagnose this? Maybe something in the Chrome debug 
console?




___
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] Help with unraid install..

2022-12-02 Thread Kenneth Porter
What's the line with backuppc in /etc/passwd say? (If it's missing, 
that's also a clue.)





___
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] Tar causing problems with removable drive on localhost

2022-10-20 Thread Kenneth Porter
I haven't found a good explanation of how the /media mount system works. 
It seems that mechanism changes frequently.


For my CentOS 7 system with a USB external drive for backups, I use 
systemd mount units to mount the drive when anything tries to touch 
/var/lib/BackupPC. I'd suggest doing something similar to hold your 
video library. Find a suitable "permanent" mount point (like /opt/Videos 
or /mnt/Videos) and create a pair of systemd unit files in 
/etc/systemd/system.


Here's the files I use for my backup drive. The file names are important 
and should reflect where you plan to mount. Only enable the .automount 
one. It starts the .mount file when the target directory is touched.


The mount options here are from when I needed to upgrade the drive to a 
larger size and the copy process was extremely slow.


# var-lib-BackupPC.automount
[Unit]
Description = External BackupPC media automount

[Automount]
Where = /var/lib/BackupPC

[Install]
WantedBy = multi-user.target



─
# var-lib-BackupPC.mount
[Unit]
Description = External BackupPC media

[Mount]
#What = LABEL=BackupPC20211109
What = LABEL=backuppc4a
Where = /var/lib/BackupPC
Type = ext4
# options for better read performance
Options = 
defaults,noiversion,noatime,nodiratime,relatime,errors=remount-ro,commit=60,delalloc


[Install]
WantedBy = multi-user.target






___
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] Tar causing problems with removable drive on localhost

2022-10-20 Thread Kenneth Porter

On 10/20/2022 6:52 AM, G.W. Haywood via BackupPC-users wrote:

I checked in the syslog and I can't see any other log files that it
might be using.


You can spend hours trawling through logs, but mostly I'd search in
/var/log/(daemon.log|debug|kern.log|messages|syslog) - not necessarily
in that order. 


A trick I've learned is to issue "ls -lt /var/log | head -20". This will 
list the 20 log files most recently written to. Alas, it doesn't find 
journald stuff, and it doesn't look in subdirectories, so you need to do 
that separately.


___
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] When does compression and de-duplication happen?

2022-09-19 Thread Kenneth Porter
--On Tuesday, September 20, 2022 12:30 AM +1000 Adam Goryachev via 
BackupPC-users  wrote:



It depends on the version of backuppc either v3 or v4 as to the exact
sequence of events, but in either case, the files are processed one at a
time as they are received, so if there is an existing file from another
host in the pool, then that file will only require additional space
during the transfer of the file (I think BPC v4 with rsync will avoid
transferring the file as well).


Thanks, that's perfect. I'm backing up the backup server to itself via 
rsyncd, and it has an image of another server that's already in the backup. 
It looks like the pool grew only very slightly as a result.


(The idea is that this server will become the new server when the old one 
is retired. So I rsync the old one to it periodically and can quickly move 
all the files to their final locations when we switch. Switching hardware 
is when I upgrade the OS, so the new Rocky 8 server will replace the old 
CentOS 7 server. (I'm debating upgrading this one to Rocky 9 but that might 
wait for the next hardware.))




___
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] When does compression and de-duplication happen?

2022-09-19 Thread Kenneth Porter
When backing up a new system that's similar to an existing system, do I 
need enough space on the backup media for the entire new system, or just 
what's different? Will the entire client be pulled over and then 
de-duped, or does that happen as each file is pulled, comparing it to 
what's already in the pool?





___
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] What happens at shutdown?

2022-04-01 Thread Kenneth Porter
When I stop the service (say, for a reboot) and restart it, what happens to 
backups, refcounts, and nightlies in progress? Do they just cleanly resume 
when the service restarts? What happens to the queues?




___
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] Rotating multiple drives on one mount point

2022-03-26 Thread Kenneth Porter

On 3/26/2022 6:28 AM, G.W. Haywood via BackupPC-users wrote:

Without looking into it carefully I couldn't be sure that swapping the
storage device from under BackupPC wouldn't actually cause more issues
than the one which you're trying to address.  At the very least I think
you'd want to look at the 'nightly' processes (these *may* take several
nightly runs to complete) to make sure you haven't clobbered something. 


I'd definitely stop backuppc.service before swapping drives! The backup 
state is all in /var/lib/BackupPC, and the config is all in 
/etc/BackupPC which I bind-mound from a directory on the drive, so the 
whole thing should be self-contained.


The main problem is that "yesterday's" backup might be off-site for 
someone who needs a semi-recent file restored. But I don't see much way 
to solve that without keeping the previous backup media on-site.





___
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] Rotating multiple drives on one mount point

2022-03-26 Thread Kenneth Porter

On 3/26/2022 6:23 AM, jbk wrote:
I use a common drive label for the four disks I rotate. I recommend 
auto mount so that if your machine should restart for any reason the 
disk will remount protecting the local drive from running out of 
space. I manually stop and start the backuppc.service and then have a 
couple scripts, one to umount the drive and another to remount.


I was hoping for a way to have unique labels so I could tell which drive 
was mounted remotely. But my research so far hasn't revealed a way to do 
that. Neither the mount command nor systemd mount unit file has a 
feature to list multiple labels for the same mount point.


I'm using a pair of systemd .mount and .automount unit files to mount my 
backup media. I do mount it directly to /var/lib/BackupPC and then 
bind-mount the etc directory there to /etc/BackupPC so the config stays 
with it and can easily be used on a replacement computer.





___
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] Rotating multiple drives on one mount point

2022-03-26 Thread Kenneth Porter
I'm adding a second external drive to my rotation so I can keep one 
off-site in case of disaster.


How do people handle this? What do your systemd mount/automount unit files 
look like? Do you use a single drive label so a single systemd unit works 
to mount any backup drive to the same mount point?




___
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] Real Time View of What Is Being Copied

2022-03-04 Thread Kenneth Porter

On 3/4/2022 7:21 AM, Les Mikesell wrote:

Unix/Linux has something calle 'sparse' files used by some types of
databases where you can seek far into a file and write without
using/allocating any space up to that point.  The file as stored may
not be large but most tools to copy it will act as though the empty
parts were filled with nulls. Rsync might handle them these days but
may still take the time to send the stream of nulls.  But in any case
they are rarely used on Windows.


rsync over the network should use compression. If you're doing it inside 
ssh, then use ssh's compression, which is more reliable. The run of 
nulls will be compressed down to a count and one null. Their transfer 
will be almost instantaneous.





___
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] How to check total disk usage of backups for each client PC

2022-02-27 Thread Kenneth Porter
--On Sunday, February 27, 2022 12:20 AM + Chris Wu  
wrote:



Is there one way to know how much disk space has been used for backups of
each client PC?


No, because of de-duplication.

Why do you want to know?

For me, the question is how to effectively free up space, which is a hard 
problem. I just bought two new backup drives to replace ones that filled up.






___
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] rsync open-noatime option

2022-02-10 Thread Kenneth Porter
Is anyone using the rsync/rsyncd method with the open-noatime option to 
avoid unnecessary metadata writes when comparing files?


I'm disabling atime on all my Linux partitions and wondering if that option 
has any effect on Cygwin rsyncd running on my Windows 10 clients.


It does look like NTFS has the file property, and Win10 has some registry 
settings for controlling when it's updated:






___
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] BackupPC timesout backing up (old) Android phone (but equivalent standalone rsync command works fine)

2022-01-23 Thread Kenneth Porter

On 1/23/2022 6:52 AM, backu...@kosowsky.org wrote:

BTW thanks for the help so far... it seems like you really understand
the rsync code...:)


Not really. I've just written some network code and lots of 
multi-threaded code (which rsync isn't) for embedded systems so can make 
educated guesses about it. Single-threaded code for parallel operations 
is hard, and this looks like it might be getting stuck in that. (Right 
now I'm working on some network code for a Microchip PIC32MZ which is 
MIPS-based and the entire "OS" is single-threaded round-robin 
processing. So it requires the same kind of thinking.)


The Android side of the connection looks to be stuck in a similar 
write/select loop, which is why I think both are stuck waiting for the 
other.


What's the source of the rsync on Android? What versions are in use? 
Perhaps there's a version incompatibility with the one embedded in 
rsync_bpc.





___
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] BackupPC timesout backing up (old) Android phone (but equivalent standalone rsync command works fine)

2022-01-23 Thread Kenneth Porter

On 1/22/2022 11:45 PM, backu...@kosowsky.org wrote:

#1  0x5543fc43 in perform_io (needed=2, flags=2) at io.c:742


This smells like a deadlock. This code is waiting for 2 bytes in the 
socket output buffer so it can write the file's next block checksum. 
Perhaps the other side is failing to drain the socket for some reason.





___
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] BackupPC timesout backing up (old) Android phone (but equivalent standalone rsync command works fine)

2022-01-22 Thread Kenneth Porter

On 1/22/2022 6:28 PM, backu...@kosowsky.org wrote:

  write(2, "IOrename: 27 .smart_stay_hash.dm"..., 60) = 60


Does it really use handle 2 (stderr) for writing a log of files it's 
processed? I haven't looked at the sources but I wonder if that's an 
unrelated bug.





___
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] BackupPC timesout backing up (old) Android phone (but equivalent standalone rsync command works fine)

2022-01-22 Thread Kenneth Porter

--On Saturday, January 22, 2022 8:55 PM -0500 backu...@kosowsky.org wrote:


It gets "stuck" at varying places... as IO slows to a complete halt
(based on iftop) until rsync timesout.
Similarly, 'strace' stalls.

This happens even if I run rsync_bpc from the command line directly,
but it does *not* happen when I use native rsync with the comparable
options.

Any ideas on how to debug this further?


Once it stalls but before the timeout, run ps and lsof to see what files 
are open by the rsync_bpc. Maybe run from gdb and force a break at that 
point to get a stack dump.






___
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] transferring backups

2021-11-26 Thread Kenneth Porter
--On Friday, November 26, 2021 1:37 PM +0100 Johnny PINSON 
 wrote:



Through the files in /etc/BackupPC and in /var/lib/BackupPC I was able to
get backups and configs.
Last thing I'd like, if possible, would be having history on backups
transfered.


The history is part of /var/lib/BackupPC so you should already have that.


I noticed that I'll have to transfer ssh configuration
(~/ssh/ for user doing backups) but I don't know how to get backups
working again smoothly.


The backups are performed by a daemon process. On my system (CentOS 7) it's 
launched by a systemd service. That should be part of the BackupPC package 
on your new system. Stop the service, replace the default versions of 
/etc/BackupPC and /var/lib/BackupPC with the ones from your old system, and 
restart the service.


[No need to cc me in replies. I'll read them on the mailing list.]




___
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] transferring backups

2021-11-25 Thread Kenneth Porter
--On Thursday, November 25, 2021 6:09 PM +0100 Johnny PINSON 
 wrote:



I'd like to transfer backups done on a server A to a server B, including
configuration done for backups to be done.

Is it possible please and, if so, how?


Transfer /etc/BackupPC, /var/lib/BackupPC, and your web server config file 
(eg. /etc/httpd/conf.d/BackupPC.conf for Apache).


I keep the first two on an external drive mounted on /mnt/Backup ( 
is the date of creation), mounted with bind mounts. So it's as easy as 
plugging in the drive and moving the systemd mount units over.






___
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] Validating pool file checksums

2021-11-10 Thread Kenneth Porter
Does a script exist to run the whole pool to validate checksums? It's my 
understanding that the filename is the file's checksum, so in principle a 
simple utility could be used to look for potential disk problems.


I'm rsync'ing my external drive to a new one after running out of space, 
and this occurred to me as I was watching the pool files scroll by. I'd 
like to know that the files are all healthy.




___
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] Recommend an external drive

2021-10-18 Thread Kenneth Porter

On 10/18/2021 6:23 PM, backu...@kosowsky.org wrote:

What is a "Windows-only" drive?


I'm a bit worried that some NAS RAID boxes might be SMB-only. But I 
suspect a USB drive is going to have better performance for this than a 
NAS box, anyway.





___
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] Recommend an external drive

2021-10-18 Thread Kenneth Porter
My Western Digital MyPassport 4TB external drive has filled up so it's time 
to buy something bigger. I'm thinking an 8 or 10, possibly a Western 
Digital, as I've had fairly good experience with them over the years.


Any suggestions on which to look at? I want something easy to format to 
ext3 or ext4. (Obviously not a "Windows-only" drive!)


I'm thinking I'll clone the current drive to have the history and then put 
the old drive in the vault.





___
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] V4 Infinite Incrementals

2021-09-24 Thread Kenneth Porter

On 9/24/2021 8:25 AM, Stan Larson wrote:

BTW, I'm also running weekly air-gap backups to external media that is
stored offsite.  Having critical data backed up both locally and offsite
is reassuring, but no guarantee against an organized ransom-ware attack.


The incremental nature of BackupPC should address the ransomware issue, 
provided your backups (and your air gap swap) go back before the 
incident. So the hard part is having enough air gap backup media to go 
back to that point in time.





___
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] BackupPC V4 Permission Denied on Client

2021-09-12 Thread Kenneth Porter

On 9/12/2021 1:15 PM, jbk wrote:
By the time the digest came out I had figured out the issue. But to 
followup on loose ends I can recap my findings. First, the client 
command variable quoted below found in V3 is deprecated in V4.


Mea culpa. This time I saw the bold text, so this list DOES show bold. 
Just not in digests.



"$Conf{RsyncClientCmd} = '$sshPath -l backuppc *$host nice -n 19 
/usr/bin/sudo* $rsyncPath $argList+';"
so none of that line was executed, but because there are separate 
lines defining the ssh command, path and rsync command and path and 
host V4 was connecting to the client without the "nice -n 19 
/usr/bin/sudo" portion, thus not able to access any of the file data. 
Once I realized this I knew it was just a matter of rearranging the 
arguments to fit the new format which I succeeded in doing except for 
"nice -n 19". 


So the issue is the missing sudo, not the call to nice.

Although I hadn't inspected the config to know that nice was being used 
in V4. I'd love to see a similar thing for rsyncd on Windows that 
reduces I/O priority to reduce the impact on backups done during the 
day. I have users who insist on turning their machines off at night so 
the only time I can get a backup is while they're using the machine. 
I've been using System Explorer to lower the priority on the rsync process.


___
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] BackupPC V4 Permission Denied on Client

2021-09-11 Thread Kenneth Porter

--On Thursday, September 09, 2021 4:29 PM -0400 jbk  wrote:


The portion in bold below was not executed.


Like most mailing lists, this one is plain text only and stripped out the 
HTML part with the bolding. So it's not clear what part of the command 
wasn't executed.




___
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] Move current data dir to another location and start from scratch.

2021-08-13 Thread Kenneth Porter

On 8/13/2021 9:18 AM, G.W. Haywood via BackupPC-users wrote:

I'm a big fan of having more than one backup


Keep one copy off-site, in case of natural disaster, such as fire, 
earthquake, flood, power company zaps your facility.


I'm not happy with my data in less than three places.




___
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] RFE: Report backup job runtmie and retry count

2021-08-01 Thread Kenneth Porter
I'm trying to look for problems in my large backup list, like a job that 
runs too long and times out, or prevents other jobs from running soon 
enough. I'd then know to break that job up into smaller jobs. It would be 
useful to know the runtime of currently-running backup jobs. Additionally, 
if the job had failed on previous runs, I'd like to know how many times it 
has failed, ie. a retry count.




___
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] Reason for new RPM 4.4.0-5 available

2021-08-01 Thread Kenneth Porter
I saw a new release in my daily yum update check on CentOS 7 and wondered 
what changed. It turns out to be a change to the systemd invocations in the 
RPM package scripts that start and stop the service. So nothing in the 
actual BackupPC code changed. It's just packaging cleanup. No need to rush 
to update. Here's the recent RPM changelog:



* Wed Jul 21 2021 Fedora Release Engineering  - 
4.4.0-5

- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Mar 02 2021 Zbigniew J drzejewski-Szmek  - 4.4.0-4
- Rebuilt for updated systemd-rpm-macros
 See https://pagure.io/fesco/issue/2583.

* Mon Jan 25 2021 Fedora Release Engineering  - 
4.4.0-3

- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Jul 27 2020 Fedora Release Engineering  - 
4.4.0-2

- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Sun Jun 21 2020 Richard Shaw  - 4.4.0-1
- Update to 4.4.0.



___
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] Lost config.pl file during full backup

2021-08-01 Thread Kenneth Porter
I highly recommend installing etckeeper. It puts all of /etc under 
revision control. I use CentOS which is based on yum/dnf/rpm and it will 
perform an auto-commit of changed files before updating. I disable that 
feature so that yum won't update until I manually commit any outstanding 
configuration changes, to make sure they get a proper change comment. 
etckeeper uses git by default but you can use another revision control 
system if you prefer. A minimal knowledge of git is handy for doing 
manual commits and inspecting your change history.


Your distribution should include an etckeeper package.

https://www.tecmint.com/manage-etc-with-version-control-using-etckeeper/




___
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] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Kenneth Porter

On 7/24/2021 6:36 PM, backu...@kosowsky.org wrote:

I do the same with soft links rather than bind mounts so that I don't
have to mess with my fstab.


I think I initially tried that and rpm/yum did something wierd at the 
next upgrade, like converting the links to the directory in the package. 
Or maybe it was an selinux issue. Also, "rpm -V" (verify package) 
reports bad entries for those two directories if replaced with symlinks, 
cluttering the report on whether the system has been attacked.





___
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] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Kenneth Porter

On 7/24/2021 1:34 PM, Gavin Henry wrote:

Remind me, where is it inheriting the perms from? The folders under
the mount are all correct.


ext4 stores owner and group id numbers, so you need to do a "chown -R 
backuppc.backuppc /var/lib/BackupPC" when it's mounted to set the uid 
and gid. Alas, it looks like the UID and GID for backuppc aren't 
registered so they get dynamically allocated when the package is 
installed. They'll be different on every system. So one might need to do 
the chown as part of a startup script if the drive gets shared among 
several servers.


Tip:

Mount the drive's root to /mnt/BackupPC, create subfolders /backuppc/etc 
and /backuppc/BackupPC, then do a bind mount of those folders to 
/etc/BackupPC and /var/lib/BackupPC. That way you'll keep the 
configuration on the drive with the data. It makes a bare-metal recovery 
easier if the server dies.





___
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] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Kenneth Porter

On 7/24/2021 11:43 AM, Gavin Henry wrote:
On my home desktop my backups are going to a 2TB usb drive. All good. 
It's filling up, so I bought a 4TB usb one and have rsynced all data 
on the same type of filesystem too (rsync -av --delete) but when I 
mount it and restart BackupPC, nothing shows. Put the old drive back 
and re-mount/restart and they are all there. 


How are you mounting it? Unit file? /etc/fstab?

Permissions look ok on the drive and the mount point? How about selinux?

I generally label my partitions on my removable drives and use 
/dev/disk/by-label in a mount script to mount drives I expect to swap 
often. (I haven't done that with BackupPC but I do it with another 
situation.)



My unit files:



# var-lib-BackupPC.mount
[Unit]
Description = External BackupPC media

[Mount]
What = LABEL=backuppc4
Where = /var/lib/BackupPC
Type = ext4

[Install]
WantedBy = multi-user.target



# var-lib-BackupPC.automount
[Unit]
Description = External BackupPC media automount

[Automount]
Where = /var/lib/BackupPC

[Install]
WantedBy = multi-user.target



___
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] job queue order

2021-07-12 Thread Kenneth Porter

How can I change the order in the queue?

I just added 18 new "hosts" (actually 6, but with 3 backup jobs per host). 
How can I push them to the front of the queue to initialize their first 
backup? Is there some UI to rearrange the queue order? I don't want to 
force a new job to start running immediately, to avoid loading down the 
network. I just want to make sure those jobs run next.




___
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] idle versus done state and host summary

2021-07-12 Thread Kenneth Porter
Using v4.4.0. I was comparing the Host Summary page for two servers with 
just a few clients and one with a lot of clients. The one with lots of 
clients has nice color bands in the table indicating success with light 
green. (There are also yellow and red rows for problems and grey for 
disabled clients. New clients awaiting a first backup are white.) The small 
servers have only white backgrounds for all clients. Looking closer, I 
realized the "Last attempt" column in the small servers has only "idle" 
while the big server has "done" in that column. Why don't the small servers 
say "done"?




___
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] Disk space used by single host

2021-05-10 Thread Kenneth Porter

--On Monday, May 10, 2021 5:25 PM -0400 backu...@kosowsky.org wrote:


Even if you were content with seeing a standalone heat map for one
backup (as unhelpful as it may be), creating it would be quite slow
since you would need to access, unpack/uncompress, and read each attrib
file to calculate the file sizes.


Indeed. If you've used the treemap utilities, you know you leave them 
running in the background for an hour or more and then view the result. 
kdirmap has the feature that you can load a previously-saved map. Hence, 
I'd think such a plugin would run in the background or load a kdirmap file. 
Hmm, perhaps this might be better as a standalone web page rather than a 
BackupPC plugin.


Presentation would be interesting. Most useful would be a treemap of the 
pool, with tooltips showing what each file was known as on clients, and how 
many clients shared it. One could optionally weight a file's size by how 
many clients shared it.


(Is there a way to add links to external facilities in BackupPC? I 
currently have a separate page with the link to the cygwin rsyncd package 
to use when setting up a new PC.)



Of course, if you "welcome" such a plugin, you are more than
"welcome" to write one as this is an open source project...

I just don't see it happening by itself as the dev team is small (mostly
Craig) and focused on core stability and functionality.


Oh, I'm quite aware it would be SMOP, hence the suggestion that it be a 3rd 
party plugin. ;) But if someone's looking for a school project that might 
be a nice one to share.





___
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] Disk space used by single host

2021-05-10 Thread Kenneth Porter
--On Monday, May 10, 2021 1:16 PM -0500 Gerald Brandt  
wrote:



I'm looking for actual physical disk usage of the backup. My disk is 96%
full and I want to know which host is using most of the space.


Coincidentally, I was recently thinking that it would be nifty to replace 
the current tree display with the treemap-based one from kdirstat and 
WinDirStat. The treemap makes it really easy to see where the disk hogs 
are, and those programs are open source, so a plugin for BackupPC would be 
welcome.


Check out the screenshots of the two program:






___
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] Disk space used by single host

2021-05-10 Thread Kenneth Porter
--On Monday, May 10, 2021 1:16 PM -0500 Gerald Brandt  
wrote:



I'm looking for actual physical disk usage of the backup. My disk is 96%
full and I want to know which host is using most of the space.


That's only useful if that host is mostly unique files not present on other 
hosts. Perhaps that's true in your installation. My site has a lot of 
Windows workstations and the common operating system files dominate each 
backup.




___
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] Renaming clients from IPs?

2021-04-14 Thread Kenneth Porter
--On Tuesday, April 13, 2021 12:16 PM -0400 Joseph Bishay 
 wrote:



Our host names are not completely set up correctly.  The servers are most
reliably accessed via their IP addresses rather than their hostnames so
using the hostnames may not always work.  Is that the best option?

Regarding mDNS, we have about 10 linux machines and 2 Windows machines so
the hostname.local option would only work for the minority of clients.


It sounds like you could go old-school (pre-DNS!) and use a shared hosts 
file. Just rsync it from the hosts file master at regular intervals.






___
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] Renaming clients from IPs?

2021-04-13 Thread Kenneth Porter

--On Tuesday, April 13, 2021 1:26 AM -0400 backu...@kosowsky.org wrote:


Why don't you just use the host names rather than the IP address?
The hostname should then resolve to the write IP address assuming you
have that set up write on your system.


If the hosts support mDNS (and Windows does), use hostname.local. You might 
need to install the Avahi package on your BackupPC server to use mDNS. This 
eliminates the need to set up a DNS server for your LAN.






___
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] systemd mount point dependencies

2021-03-18 Thread Kenneth Porter
I'm rigging up a new BackupPC server to use an external USB drive and I 
wanted to get systemd to automount the drive when the service is started. I 
just found this nice article on how to do that:




My use case is slightly complicated because I want to mount both 
/etc/BackupPC and /var/lib/BackupPC from the external drive using bind 
mounts, so I'll actually need three mount unit files, for the physical 
mount and the two bind mounts, plus a drop-in to modify the BackupPC 
service unit file.




___
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-04 Thread Kenneth Porter
--On Thursday, February 04, 2021 11:24 AM +0100 Sorin Srbu 
 wrote:



I'll continue to end-post as before. :-)


Not end/bottom post! That's really no better than top-posting, because we 
still have to scroll down through the massive post you're quoting.


Brutally trim the post you're replying to and INTERLEAVE your reply. So 
it's trimmed/interleave you want to go for on public mailing lists.


Top-posting is fine for private/business where you add correspondents as 
the conversation progresses.


The biggest pain is finding an MUA that can support both and allows the 
different quoting style. In interleaved, prefix the quote with "> ". In 
top-post, copy the message below a separator line with no prefix. Has 
anyone found a decent MUA that can do that? I love the ancient Mulberry for 
mailing lists. But it insists on prefix-quoting when I top-post. So does 
Thunderbird, which I use in parallel to deal with HTML email (which is 
useful for support for inline images, like when a customer is reporting a 
broken product).






___
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-04 Thread Kenneth Porter
--On Thursday, February 04, 2021 5:13 PM +0100 Alexander Kobel 
 wrote:



Distro support is a serious thing to consider. In general, backuppc will
happily work with whatever is the default file system of your
distribution. For CentOS and RedHat, XFS is the obvious choice, and BTRFS
will not give you any benefit except for compression, but potentially a
wealth of trouble. You shouldn't need a whole lot of fancy features like
snapshotting, copy-on-write, deduplication etc. on your pool anyways.


I think I'm down to XFS vs ext4. Are there any strong advantages of either 
for use as a BackupPC pool?






___
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] 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] Turn-key backup solution for all-Windows network

2020-11-18 Thread Kenneth Porter
Thanks, that's all quite useful information. Interesting that the Pi 4B 
isn't reliable. It looked promising as a possible edge router using two 
gigabit NICs.


Do you install to your Pi using just a tarball, or is there some 
packaging as there is for RPM? (I'm sure I can adapt the extra RPM 
resources to work.)


I'll definitely be putting the device behind a UPS as power here is 
spikey, even without it being a machine shop.


The uptime is what I'm familiar with for Linux systems, although my 
servers usually get rebooted every couple of months when a new kernel 
gets released. After waiting a week or two for others to suffer any bugs 
they might have.





___
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] Turn-key backup solution for all-Windows network

2020-11-17 Thread Kenneth Porter
I'm advising a friend  on what to use to back up his networked Windows PCs 
(including one Windows Server) in a machine shop. I deploy BackupPC at home 
and at my own office on CentOS servers, but this shop has no technical 
people and no Linux machines. I'm wondering if anyone has bundled BackupPC 
into, say, a Raspberry Pi as a "backup appliance". Or is there some other 
product I should be looking at?




___
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] Symlink for /var/lib/BackupPC

2020-10-28 Thread Kenneth Porter

On 10/28/2020 1:53 PM, Greg Harris wrote:

cp -R /var/lib/BackupPC /BackupDriveLoc


I like to use rsync for that kind of thing. If anything goes wrong, I 
can resume the copy in the middle. Something like:


rsync -av /var/lib/BackupPC/ /BackupDriveLoc/

(The trailing slashes are important, to ensure that the paths represent 
the top directories to be copied from and to.)





___
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] Thank you far an easier installation

2020-06-02 Thread Kenneth Porter
--On Tuesday, June 02, 2020 4:21 PM -0500 Richard Shaw 
 wrote:



The decision to not update EL 7 was intentional as there were some
non-backward compatible changes that necessitate manual involvement. I
didn't want to auto update the 10s of thousands of systems and deal will
the fall out. I do however provide 4.X for EL 6 & 7 via my COPR:

https://copr.fedorainfracloud.org/coprs/hobbes1069/BackupPC/

The EL7 repo file has nearly 50,000 downloads.


I'm a happy user of the COPR package. I've got it deployed on both my 
office and home CentOS 7 servers where it backs up about a dozen Windows 10 
and 7 PCs over rsyncd.


I use rsyncd to make the clients read-only, a safety measure to keep 
potentially hostile intruders from attacking them that way. Restores must 
be done using zip files, and I've done that a few times for users who 
accidentally deleted or corrupted a file.


Rather than update from v3, I bought a new external backup drive and just 
started fresh with v4, migrating over settings manually. The same thing I 
do when doing a major OS upgrade, buying a new server.




___
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] BackupPC rsync skipping a directory

2020-04-16 Thread Kenneth Porter
--On Thursday, April 16, 2020 1:38 PM -0700 Robert Mares 
 wrote:



Actually, a co-worker just pointed that out to me, so I removed the
--one-file-system argument and that fixed the problem. I had been banging
my head against the wall on that for a couple of hours and just needed a
fresh set of eyes to see what a dummy I was being.


If it's worth putting on a separate filesystem, it's worth making a 
separate backup. My Windows box has an SSD boot drive and a separate drive 
for my data, and I create separate backups for the two drives.






___
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] Q: Issues w/network account for backuppc?

2019-12-04 Thread Kenneth Porter

On 12/4/2019 7:07 AM, G.W. Haywood via BackupPC-users wrote:


Why does this scenario give me a churning feeling in my stomach? 


Why should it? Centralized management of credentials is a reasonable 
thing to do.


My suspicion is that the BackupPC service is trying to start before the 
credentials server is up. This is where you need systemd, to make sure 
the order of startup is obeyed, and to allow dynamic conditions such as 
a slow-starting credentials server. The default systemd unit file for 
BackupPC doesn't check for this. You need to extend it to add a 
dependency on connectivity to the credentials server.





___
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] Q: Issues w/network account for backuppc?

2019-12-03 Thread Kenneth Porter
--On Wednesday, December 04, 2019 12:04 AM + "Gardner, Kevin" 
 wrote:



Long-time satisfied user of BackupPC, Fedora server w/Fedora, MacOS, and
Windows clients.  My IT group is asking me if we can migrate this a new
Linux-based server where the account running Backuppc would be networked
rather than a local account.  Initial trials by the IT group have not
been successful in getting that config to work; does anyone on here have
better experiences?


It would help to know what goes wrong when they try.





___
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] Backup Server Hardware

2019-11-01 Thread Kenneth Porter
Lots of memory if you use rsync(d) for backup. Especially if you preserve 
hard links. Enough memory to hold the whole metadata tree.




___
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] Running BackupPC with NGINX on CentOS 7

2019-08-12 Thread Kenneth Porter

New wiki page:



This should also work with other Red Hat variants that use systemd, 
including Fedora and RHEL 7/8.


Feedback welcome.



___
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] Why ping before backup?

2019-08-10 Thread Kenneth Porter

On 8/10/2019 9:50 AM, Alexander Kobel wrote:

IMHO the only reason why one might want to replace the ping command is
hosts that don't reply to pings for security reasons


I'm thinking that "rsync $host::" would be a good substitute for an 
rsyncd backup because it preloads the executable on the client into its 
disk cache and verifies that the service, not the host, is up and 
accessible.


I set up a new Win10 client the other day and forgot to open the 
firewall to ping when I opened it to rsync.exe. I mostly work from home 
so fixing that means I have to coordinate with the user to meet him when 
he's at the office and not busy using the host. It's just easier to 
change the ping setting. And, since Windows defaults to disallowing 
ping, perhaps this change is a good choice for all Windows rsyncd clients.





___
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] Why ping before backup?

2019-08-08 Thread Kenneth Porter
Why does BackupPC ping the host to be backed up before starting its backup. 
(I'm using rsyncd.) I'm thinking of replacing the ping command with "rsync 
$host::". Is there any downside to that?




___
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] I'd like to make a suggestion to the BPC devs

2017-07-21 Thread Kenneth Porter

--On Thursday, July 20, 2017 3:54 AM +0200 B  wrote:


An addition to BPC could do the trick, preferably saving the result in
another directory than the main one, by checking which files have been
touched the present day and save them automatically; it may be triggered
from a crontab. And before each complete backup, BPC would empty this
daily directory for the next day.


A better solution would be a change to rsyncd to monitor its filesystem and 
remember which files were touched since the last backup. Some filesystems 
have a "backdoor" like inotify that lets you get notified of files getting 
touched. rsyncd could log these and only consult this list, not the whole 
filesystem. You'd need some way to reset the list and force a full 
filesystem check.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-15 Thread Kenneth Porter

On 7/14/2017 7:45 AM, Bob Katz wrote:


But is there a point to running sudo rsync  if the object is to 
use systemctl to run the daemon? Is that for a test or permanent? Yes, 
I'm confused :-)  And systemctl has already been initiated.



According to the man page, --foreground should be --no-detach. That 
keeps the daemon from disappearing and causes its output to appear on 
the terminal. So the command would be:


sudo rsync --daemon --no-detach --verbose 


The point is to observe any error messages during rsyncd startup that 
would cause it to immediately exit. I think that's what's happening to 
you. You start it in the background, it finds something fatal and dies. 
And it's not logging it so you can't see what's killing it. Run the 
daemon in the foreground from the command line to see what's killing it. 
Once you get that working, we can move on to making it start from 
systemd. (Which should just work once we diagnose the "crib death" of 
the rsyncd process.)



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-15 Thread Kenneth Porter

On 7/14/2017 11:20 PM, Adam Goryachev wrote:
Actually, I think you will find that /proc, /dev, /sys, etc are 
actually different filesystems, and so will automatically be excluded 
by --one-file-system.


Does --one-file-system work with rsyncd (daemonized rsync)? I thought it 
only applied when using a ssh connection to a remote non-daemon rsync. 
So I list all mounted filesystems in the exclude list of my rsyncd.conf. 
(Type mount or inspect /etc/mtab to see what to list.)



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-14 Thread Kenneth Porter
--On Thursday, July 13, 2017 12:03 PM -0400 Bob Katz  
wrote:



There must be a foolproof way of displaying running daemons, finding out
the PID and killing it.  The PS command that everyone is fond of does not
show the daemon is runnning, I don't believe.


If ps doesn't see it, then it's not there. There's no magically more 
powerful command for peeking inside the kernel at running processes.


So likely rsync starts and then immediately exits with some problem in the 
configuration.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-14 Thread Kenneth Porter
--On Thursday, July 13, 2017 4:37 PM + Michael Stowe 
 wrote:



At this point, I'd recommend

sudo rsync --daemon --foreground --verbose

So you can actually tell what's happening.


According to the man page, --foreground should be --no-detach. That keeps 
the daemon from disappearing and causes its output to appear on the 
terminal. So the command would be:


sudo rsync --daemon --no-detach --verbose

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-12 Thread Kenneth Porter
--On Wednesday, July 12, 2017 10:57 AM -0400 Bob Katz  
wrote:



I manually run sudo rsync --daemon and there is no "response" in
terminal. I take it to mean the daemon launched with no problem.


On Fedora and CentOS 7, you should be starting the daemon with systemd, 
like this:


systemctl start rsyncd

To enable rsyncd to start when the system boots, enable the service (which 
puts it on the list of boot-time services):


systemctl enable rsyncd

Note that, in systemd, enabling a service doesn't immediately start it. It 
just adds it to the list of services to start on a reboot. Typically you 
test the service by starting it manually first with the start command. Once 
you have it working the way you want it, you enable it to make sure it runs 
after reboots. 


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-05 Thread Kenneth Porter
--On Wednesday, July 05, 2017 12:26 PM -0400 Bob Katz  
wrote:



rsync: failed to connect to localhost.localdomain (::1): Connection
refused (111)


Is rsyncd listening on the IPv6 interface? Or only the IPv4 interface? The 
error message says that rsync is attempting to connect to the IPv6 
loopback.


Also, your test command is a push command. The arguments are source and 
destination. My test command is a pull command that pulls from the "remote" 
(rsyncd) end a list of modules. Your command tries to copy a local file to 
the remote rsyncd server.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Backing up the server computer

2017-07-03 Thread Kenneth Porter

On 7/3/2017 1:16 PM, Bob Katz wrote:

But I get this error. I suppose I'm doing something fundamentally not
permitted (can't use rsync daemon to connect to the same computer???):

rsync_bpc: failed to connect to localhost.localdomain (::1): Connection
refused (111)
rsync_bpc: failed to connect to localhost.localdomain (127.0.0.1):
Connection refused (111)


Test the connection with the regular command line rsync client. Just run 
"rsync localhost.localdomain::" and see what happens. (It should list 
the modules available to back up.) You can also use "lsof -i" to see if 
anything is listening on the rsyncd port. Maybe rsyncd isn't running? 
Could you have a firewall rule blocking that port on the loopback 
interface? Also try "ping localhost.localdomain" to see what address is 
being used.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Using SMBv2/Disabled SMBv1 on Windows Hosts, Not Backing Up

2017-06-12 Thread Kenneth Porter

On 6/12/2017 1:39 AM, James Arnold wrote:
As per title really, following current affairs I've disabled SMBv1 on 
about everything running Windows. After that, none of my Windows 
servers back up any more. I've updated Linux itself, added 'min 
protocol = SMB2' into smb.conf, even tried putting '-m SMB2' into the 
Xfer options but still not happening.


Any ideas? Does Backuppc use SMBv2 even?


 You want to look at the mount options for your CIFS mounts. Where you 
set these depends on your OS/version (fstab versus systemd) and whether 
you use autofs.


https://askubuntu.com/questions/915856/mounting-windows-share-using-smb-2-1-or-greater


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Web access restrictions and IPv6

2017-05-25 Thread Kenneth Porter

In case anyone else has this problem

I suspect a Win10 update changed the way my web client (Chrome) accesses my 
Linux Apache server, favoring IPv6 over IPv4. I'd originally configured it 
to allow connections from my LAN's IPv4 prefix and all worked fine. This 
week (after a couple weeks of not checking) I found I couldn't connect. I 
traced it down to the connection coming from my link local IPv6 address. So 
I needed to add an extra Require stanza to my Apache config. If your 
error_log shows connections refused from addresses starting with fe80, 
you've run into this issue.



From /etc/httpd/conf.d/BackupPC.conf:


AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"


 # Apache 2.4
 
   Require valid-user
   
 Require local
# allow from my LAN IPv4 block
 Require ip 10.0.0.0/8
# ADD THIS for IPv6 link local connections!
 Require ip fe80::/16
   
 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] rsyncd and selinux

2017-05-25 Thread Kenneth Porter
I just fought through dealing with errors in my backup due to attempting to 
back up sockets and wanted to share my solution.


Here's an example of the error message:

rsync: readlink_stat("/var/spool/postfix/private/tlsmgr" (in root)) failed: 
Permission denied (13)


(Postfix creates a directory full of sockets for all its processes, so I 
got quite a few errors in that directory.)


On CentOS 7 I found I needed this:

setsebool -P rsync_full_access 1

You may also need:

setsebool -P rsync_export_all_ro 1

I'd prefer to just enable read-only access but that doesn't allow the 
readlink_stat needed to back up a socket. (I don't see a man page for that. 
Is that API part of BackupPC or rsync?)


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Problem Backing up RHEL7

2017-05-19 Thread Kenneth Porter
On 5/19/2017 5:47 PM, Dayne Ellanna wrote:
> You mean start backup from command line?

Like this:


su -s /bin/bash backuppc

/usr/share/BackupPC/bin/BackupPC_dump -v myserver


That will switch to the backuppc user and run the backup on the command 
line in verbose mode for the client "myserver". The backuppc user 
typically has no shell so you have to specify one on the su command line.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Problem Backing up RHEL7

2017-05-19 Thread Kenneth Porter
--On Friday, May 19, 2017 2:05 PM -0800 Dayne Ellanna 
 wrote:

> This is all I get.
>
> 2017-05-19 09:02:56 Backup failed on myserver (aborted by signal=ALRM)
> 2017-05-19 09:02:57 Started full backup on myserver (pid=30014, share=/)
>
> But then it just restarts for a long time, days, then does this all over
> again.

Try running it from the command line with -v (verbose) to see what's 
hanging it up. 

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] Recommend add to manual

2017-05-14 Thread Kenneth Porter
On 5/14/2017 6:55 AM, Les Mikesell wrote:
> I always thought the best approach was to mount your media in the
> place where backuppc expects it_before_  installing the package so
> that ownership and selinux contexts are set correctly during the
> package install.   Does that work through symlinks?   Maybe you could
> make the symlink the other direction if you want to call it some other
> name.

What if you have TWO drives you want to mount to /var/lib/backuppc? With 
BackupPC 4, it's not unreasonable to swap your backup media every week 
to an offsite location.

Just create the skeleton directory structure in the external media and 
run restorecon once it's mounted.

Another thing one can do is move /etc/BackupPC to the external media and 
mount that directory over /etc/BackupPC so that your settings follow 
your media. This makes it easier to do bare-metal restores. Just install 
a minimal OS and BackupPC, then mount your backup drive and you've got 
all your settings ready to do the restore.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] SELinux for v4.1.1

2017-05-03 Thread Kenneth Porter
After relabeling the external drive with restorecon (it ran overnight to 
label two million files), the web interface can now access the logs.

I haven't been able to use the mount options context= or defcontext=, as 
mount attempts with those set in fstab result in the drive not mounting. 
I've no idea what I'm doing wrong there. But I'll keep an eye on the 
drive to see if any new files are created without proper labels.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] SELinux for v4.1.1

2017-05-02 Thread Kenneth Porter
tl;dr:

BackupPC users who want to enable SELinux should mount their backup media 
with either the context or defcontext options. (See links below for syntax.)

--On Tuesday, May 02, 2017 5:29 PM -0700 Kenneth Porter 
 wrote:

> I found through audit2why that the files in /var/lib/BackupPC (mounted
> from  an external USB drive) are mislabeled as
> system_u:object_r:unlabeled_t:s0  and should be labeled
> system_u:object_r:var_lib_t:s0.

I think the default label is per-filesystem so the mount point prevents the 
files on the external drive from getting labeled properly. I found this 
article showing how to set the filesystem's default label. There's also an 
option context= for setting a label that overrides all label attributes on 
files within the filesystem. That may be be useful for drives that get 
moved between systems that don't have selinux or have different policies.

<https://docs.fedoraproject.org/en-US/Fedora/12/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Mounting_File_Systems-Changing_the_Default_Context.html>

<https://docs.fedoraproject.org/en-US/Fedora/11/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Mounting_File_Systems.html>



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] SELinux for v4.1.1

2017-05-02 Thread Kenneth Porter
--On Monday, May 01, 2017 1:52 PM -0500 Richard Shaw  
wrote:

> It would need a lot of work as the package has a lot of customizations in
> it but you could base the work off the Fedora package which generates a
> SELinux module...
>
> http://pkgs.fedoraproject.org/cgit/rpms/BackupPC.git/tree/BackupPC.spec
>
> Starts at line 108...

Further investigation shows that your package carries forth the selinux 
components from the Fedora package (which is the Right Thing), so I have 
those installed already.

I found through audit2why that the files in /var/lib/BackupPC (mounted from 
an external USB drive) are mislabeled as system_u:object_r:unlabeled_t:s0 
and should be labeled system_u:object_r:var_lib_t:s0. I'm running a 
recursive restorecon on the mount point to address that. But I need to find 
out why the backup script doesn't properly label these as it creates them. 
This should be done automatically and the app shouldn't need to do anything 
special. I'll investigate further.

The files in /var/log/BackupPC appear to be labeled correctly but the web 
CGI doesn't display them. This might be a side effect of the mislabeled 
/var/lib tree so I'll test again once the restorecon finishes.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] SELinux for v4.1.1

2017-04-28 Thread Kenneth Porter
I was able to successfully complete an rsyncd backup but it doesn't show in 
the web interface unless I set SELinux to Permissive. Any hints on what to 
tweak to let Apache read /var/lib/BackupPC?

Here's a directory listing to show how the host's files are labeled:

drwxr-x---. backuppc backuppc system_u:object_r:unlabeled_t:s0 .
drwxr-x---. backuppc root unconfined_u:object_r:unlabeled_t:s0 ..
drwxr-x---. backuppc backuppc unconfined_u:object_r:unlabeled_t:s0 0
drwxr-x---. backuppc backuppc system_u:object_r:unlabeled_t:s0 1
-rw-r-. backuppc backuppc system_u:object_r:unlabeled_t:s0 LOCK
-rw-r-. backuppc backuppc system_u:object_r:unlabeled_t:s0 LOG.042017
-rw-r-. backuppc backuppc system_u:object_r:unlabeled_t:s0 XferLOG.0.z
-rw-r-. backuppc backuppc system_u:object_r:unlabeled_t:s0 XferLOG.1.z
-rw-r-. backuppc backuppc unconfined_u:object_r:unlabeled_t:s0 
XferLOG.bad.z.old
-rw-r-. backuppc backuppc system_u:object_r:unlabeled_t:s0 backups
-rw-r-. backuppc backuppc system_u:object_r:unlabeled_t:s0 backups.old
drwxr-x---. backuppc backuppc system_u:object_r:unlabeled_t:s0 refCnt


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] CPAN BackupPC::XS Fails

2017-04-07 Thread Kenneth Porter
On 4/7/2017 1:23 PM, Richard Shaw wrote:
> Just make sure you have Fedora EPEL installed
> For some of the dependencies.

I found I also needed to install this yum plugin with a raw RPM command 
because it's not available in the CentOS or EPEL repo.

https://copr.fedorainfracloud.org/coprs/alonid/yum-plugin-copr/


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] CPAN BackupPC::XS Fails

2017-04-07 Thread Kenneth Porter
--On Friday, April 07, 2017 2:02 PM -0600 Michael McGregor 
 wrote:

> sudo cpan BackupPC::XS

Instead of CPAN, consider using Richard Shaw's RPM:

https://copr.fedorainfracloud.org/coprs/hobbes1069/BackupPC/



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] RPM for BackupPC 4

2017-03-18 Thread Kenneth Porter
--On Saturday, March 18, 2017 8:48 AM -0500 Richard Shaw 
 wrote:

> I actually just recently took over maintainership of BackupPC for Fedora
> and EPEL.

It looks like the Fedora page for the package still lists Benjamin as 
maintainer, and I remember him doing that back in November when the 
original maintainer went MIA. Thanks for picking this up.



> I actually plan on starting with a COPR for testing purposes since I don't
> want to automatically start upgrading people. In fact I plan on building
> version 4 on F26, and rawhide only for that reason.

I look forward to seeing this. My C7 system has a blank USB drive ready to 
start mirroring my live BackupPC3 system with v4. I just want to install it 
as an RPM. (I've done some custom packaging myself and have debugged a lot 
of spec files. That COPR system looks pretty nice for that kind of work.)

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] RPM for BackupPC 4

2017-03-17 Thread Kenneth Porter
I know Benjamin Lefoul took over as packager for Fedora. Benjamin, is there 
an RPM coming soon for v4? I've got a CentOS 7 system suitable for testing 
it on. 

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
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] cygwin-rsyncd-3.0.9.0 and cygwin-rsyncd-3.1.2 file integrity

2017-02-16 Thread Kenneth Porter
On 2/15/2017 5:49 PM, Craig Barratt wrote:
> Removing blat sounds like a good idea.  Would someone like to create a 
> new cygwin-rsyncd-3.1.2 wrapper and test it?
>
> Currently none of the source files (which are mainly binaries) for the 
> windows client installer are on github.  I can add them once we have a 
> clean working version.

Which installer are you using? I've been using WiX, which creates .msi 
files from XML descriptions. As with most software, it trades ease of 
use for power. It provides raw access to the system installer instead of 
a pretty GUI for very simple install scenarios.

http://wixtoolset.org/

  .msi files are databases with tables declaring where things go. The 
tables may contain binary blobs with embedded DLLs to take special 
actions beyond the ability of Windows' built-in installer. You can view 
and edit an MSI database using the Orca utility included with Visual 
Studio. Look for the orca.msi file after you install Visual Studio. On 
my system with multiple VS versions I find the installer here:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\Orca.Msi
C:\Program Files (x86)\Windows Kits\8.0\bin\x86\Orca-x86_en-us.msi

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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


  1   2   >