You can follow XferLog with

/usr/share/BackupPC/bin/BackupPC_zcat <pathto>/XferLOG.z | tail

but it is buffered, so not completely current

Also on the backup host, you can get the  process id of the current dump
processes (there will be two per host during file transfer), and do

(sudo) ls -l /proc/{pid1,pid2}/fd

if a file is being written to backup it will show up in this list. But be
aware that there are times (sometimes long) when files are not being written

On Thu, Aug 4, 2016 at 8:59 AM, martin f krafft <madd...@madduck.net> wrote:

> Hey,
>
> some of the backup processes here run for hours, and there are often
> reasons why I want to check on what's going on.
>
> How do you monitor backups in real-time? XferLOG.z can't be tail'd,
> and attaching strace or lsof to the running processes just isn't
> very sexy.
>
> Can you fathom a good method by which I can keep a good eye on
> what's going on, e.g. a way to have BackupPC write to the host's log
> file something like
>
>   2016-08-04 14:39:11 considering file: /foo/bar/baz (cpool:a/b/c/defgh…)
>   2016-08-04 14:39:12 skipping file: /foo/bar/baz — already in pool
>   2016-08-04 14:39:13 transferring file: /foo/bar/baz
>   2016-08-04 14:39:17 done transferring: /foo/bar/baz
>
> I've tried adding --verbose and --progress to rsync, I've tried
> increasing the XferLogLevel beyond 1 (but the XferLOG isn't
> real-time in the way I'd seek it).
>
> Maybe one solution would be to write the XferLOG without zlib
> compression and only compress it later? Is this somehow
> configurable?
>
> --
> @martinkrafft | http://madduck.net/ | http://two.sentenc.es/
>
> "if a man treats life artistically, his brain is his heart."
>                                                         -- oscar wilde
>
> spamtraps: madduck.bo...@madduck.net
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
------------------------------------------------------------------------------
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to