I use:

  strace -e open,openat $(ps -o lwp= -LC rsync_bpc | sed 's/^/-p/') 2>&1 | less

George King wrote at about 19:54:40 +0000 on Tuesday, March 8, 2022:
 > Just going back to this, as the OP's use case is backing up a Windows 
 > machine, the strace suggestion has potential but I've I've tried it and 
 > after
 > 
 > strace: Process 12671 attached
 > 
 > nothing happens although the Windows Resource Monitor does show file 
 > access.  Any other way to show the file access from the backuppc server, 
 > or am I missing something?  Thanks.  This would be useful because I have 
 > had the same problem as the OP and when the backup hangs, it requires 
 > manual intervention to stop the backup and the log files seem to vanish 
 > long with that backup number.
 > 
 > George
 > 
 > On 03/03/2022 15:19, Greg Harris wrote:
 > > Somewhere in the archives in the past two years or so, you’ll find a 
 > > thread discussing this.  From my notes, here’s a few things that might 
 > > help the search process:
 > >
 > > ls -l /proc/<process id for rsync>/fd  (Run on machine being backed up)
 > >
 > > strace -e open -p <pid of rsync>  (Requires installing strace, run 
 > > from server)
 > >
 > > sudo watch -n0.1 'lsof -c rsync | grep 3r'   (Requires installing 
 > > lsof, run on machine being backed up)
 > >
 > > Thanks,
 > >
 > > Greg Harris
 > >
 > >> On Mar 3, 2022, at 9:27 AM, Micha Kersloot <mi...@kovoks.nl> wrote:
 > >>
 > >> Hi,
 > >>
 > >> you could try to split the backup in several parts?
 > >>
 > >> Met vriendelijke groet,
 > >>
 > >> Micha Kersloot
 > >> <https://www.kovoks.nl/>
 > >>
 > >> <https://www.kovoks.nl/e-mail>
 > >> www.kovoks.nl <https://www.kovoks.nl/>|www.zimbra-nederland.nl 
 > >> <https://www.zimbra-nederland.nl/>| Volg@kovoks 
 > >> <http://twitter.com/kovoks>op Twitter
 > >> *E*mi...@kovoks.nl
 > >> *T*+31 (0)345 - 53 29 27/0345 - 53 29 27
 > >> *A*Belle van Zuylenlaan 1-5 <https://goo.gl/maps/MrqmTv442tH2>|4105 
 > >> JX Culemborg <https://goo.gl/maps/MrqmTv442tH2>
 > >>
 > >> KvK 11033334
 > >>
 > >>
 > >>
 > >>
 > >> ------------------------------------------------------------------------
 > >>
 > >>     *Van:*"Akibu Flash" <akibufl...@outlook.com>
 > >>     *Aan:*"General list for user discussion, questions and support"
 > >>     <backuppc-users@lists.sourceforge.net>
 > >>     *Verzonden:*Donderdag 3 maart 2022 15:23:23
 > >>     *Onderwerp:*Re: [BackupPC-users] Real Time View of What Is Being
 > >>     Copied
 > >>
 > >>     Just bumping this up… any suggestions for a resolution?  Thanks.
 > >>
 > >>     *From:*Akibu Flash <akibufl...@outlook.com>
 > >>     *Sent:*Monday, February 28, 2022 4:32 PM
 > >>     *To:*BackupPC-users@lists.sourceforge.net
 > >>     *Subject:*[BackupPC-users] Real Time View of What Is Being Copied
 > >>
 > >>     Dear All,
 > >>
 > >>     I backup a couple of Windows machines to a linux machine via
 > >>     rsync.  However, the backup for one of the Windows machines never
 > >>     finishes and results in a partial backup.  In the CGI user
 > >>     interface Count column, the backup always seems to hang at 311941
 > >>     for hours and hours. Then at some point, the backup apparently
 > >>     stops and afterwards another backup which by that time has queued
 > >>     up starts anew.  Never do I get a completed backup only a partial
 > >>     (at least for the last year or so).
 > >>
 > >>     Is there a way to start a backup from the command line and have
 > >>     the screen show what in real time is actually being backed up? 
 > >>     If so, what would that command be?  It may be that the BackupPC
 > >>     is somehow getting stuck on a file but that is only speculation.
 > >>
 > >>     Any other ideas as to what my be happening?
 > >>
 > >>     I decompressed the partial backup log file (backup #884) using
 > >>     the command BackupPC_zcat XferLOG.884.z.  I have reproduced the
 > >>     bottom portion below.
 > >>
 > >>     Any assistance in helping to track down what is happening is
 > >>     appreciated.  I do see in the log that there is an error message
 > >>     indicating an “error in the rsync protocol data stream (code 12)
 > >>     at io.c(226).
 > >>
 > >>     Thanks in advance.
 > >>
 > >>     Best, Akibu
 > >>
 > >>     G bpc_open(Downloads/Downloads/BackupPC-4.3.2/images/logo.gif,
 > >>     0x0, 00) -> 3
 > >>     G bpc_read(3
 > >>     (Downloads/Downloads/BackupPC-4.3.2/images/logo.gif), buf, 1394)
 > >>     tmpFd = -1
 > >>     G bpc_close(3 (Downloads/Downloads/BackupPC-4.3.2/images/logo.gif))
 > >>     G bpc_fileDescFree: fdNum = 3, tmpFd = -1, tmpFileName = NULL
 > >>     G bpc_lstat(Downloads/Downloads/BackupPC-4.3.2/images/logo320.png)
 > >>     G
 > >>     
 > >> bpc_file_checksum(Downloads/Downloads/BackupPC-4.3.2/images/logo320.png)
 > >>     G bpc_open(Downloads/Downloads/BackupPC-4.3.2/images/logo320.png,
 > >>     0x0, 00) -> 3
 > >>     G bpc_read(3
 > >>     (Downloads/Downloads/BackupPC-4.3.2/images/logo320.png), buf,
 > >>     7814) tmpFd = -1
 > >>     G bpc_close(3
 > >>     (Downloads/Downloads/BackupPC-4.3.2/images/logo320.png))
 > >>     G bpc_fileDescFree: fdNum = 3, tmpFd = -1, tmpFileName = NULL
 > >>     rsync_bpc: connection unexpectedly closed (23961310 bytes
 > >>     received so far) [receiver]
 > >>     R bpc_sysCall_cleanup: doneInit = 1
 > >>     Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0
 > >>     filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp,
 > >>     24467705 inode
 > >>     Parsing done: nFilesTotal = 0
 > >>     rsync error: error in rsync protocol data stream (code 12) at
 > >>     io.c(226) [receiver=3.1.3.0]
 > >>     rsync_bpc: connection unexpectedly closed (24012481 bytes
 > >>     received so far) [generator]
 > >>     G bpc_sysCall_cleanup: doneInit = 1
 > >>     DoneGen: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp,
 > >>     311942 filesTotal, 569449707538 sizeTotal, 0 filesNew, 0 sizeNew,
 > >>     0 sizeNewComp, 24467704 inode
 > >>     Parsing done: nFilesTotal = 311942
 > >>     rsync error: error in rsync protocol data stream (code 12) at
 > >>     io.c(226) [generator=3.1.3.0]
 > >>     rsync_bpc exited with fatal status 12 (3072) (rsync error: error
 > >>     in rsync protocol data stream (code 12) at io.c(226)
 > >>     [generator=3.1.3.0])
 > >>     Xfer PIDs are now
 > >>     Got fatal error during xfer (rsync error: error in rsync protocol
 > >>     data stream (code 12) at io.c(226) [generator=3.1.3.0])
 > >>     Backup aborted (rsync error: error in rsync protocol data stream
 > >>     (code 12) at io.c(226) [generator=3.1.3.0])
 > >>     BackupFailCleanup: nFilesTotal = 311942, type = full, BackupCase
 > >>     = 4, inPlace = 0, lastBkupNum = 883
 > >>     Removing prior partial backup #883
 > >>     Xfer PIDs are now 38440
 > >>     BackupPC_backupDelete: removing #883
 > >>     BackupPC_backupDelete: Merge into backup 327
 > >>     mergeDir: name = attrib, path = .
 > >>     bpc_attrib_backwardCompat: WriteOldStyleAttribFile = 0,
 > >>     KeepOldAttribFiles = 0
 > >>     mergeDir: skipping name = refCnt, path = ./refCnt
 > >>     mergeDir: skipping name = needFsck.newDir, path =
 > >>     ./refCnt/needFsck.newDir
 > >>     mergeDir: skipping name = noPoolCntOk, path = ./refCnt/noPoolCntOk
 > >>     mergeDir: skipping name = backupInfo, path = ./backupInfo
 > >>     removing remaining directory tree
 > >>     /var/lib/backuppc/pc/mark-desktop/883
 > >>     Xfer PIDs are now 38441,38440
 > >>     BackupPC_refCountUpdate: host mark-desktop #321: gotFsck = ,
 > >>     gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk =
 > >>     BackupPC_refCountUpdate: host mark-desktop #327: gotFsck = 1,
 > >>     gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk =
 > >>     BackupPC_refCountUpdate: host mark-desktop #884: gotFsck = 1,
 > >>     gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk =
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #327 (fsck = 1)
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #327
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/327/refCnt/poolCntDelta_1_0_0_38441
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #327
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/327/refCnt/poolCntDelta_1_0_1_38441
 > >>     with 638055 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884 (fsck = 1)
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_2_38441
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_3_38441
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_4_38441
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_5_38441
 > >>     with 409030 entries
 > >>     BackupPC_refCountUpdate: computing totals for host mark-desktop
 > >>     BackupPC_refCountUpdate: host mark-desktop got 0 errors (took 909
 > >>     secs)
 > >>     BackupPC_refCountUpdate total errors: 0
 > >>     Xfer PIDs are now 38440
 > >>     BackupPC_backupDelete: got 0 errors
 > >>     Xfer PIDs are now
 > >>     Finished BackupPC_backupDelete, status = 0 (running time: 910 sec)
 > >>     Xfer PIDs are now
 > >>     Running BackupPC_refCountUpdate -h mark-desktop -f on mark-desktop
 > >>     Xfer PIDs are now 38457
 > >>     BackupPC_refCountUpdate: host mark-desktop #321: gotFsck = ,
 > >>     gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk =
 > >>     BackupPC_refCountUpdate: host mark-desktop #327: gotFsck = ,
 > >>     gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk =
 > >>     BackupPC_refCountUpdate: host mark-desktop #884: gotFsck = ,
 > >>     gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk =
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #327 (fsck = 1)
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #327
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/327/refCnt/poolCntDelta_1_0_0_38457
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #327
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/327/refCnt/poolCntDelta_1_0_1_38457
 > >>     with 638055 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884 (fsck = 1)
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_2_38457
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_3_38457
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_4_38457
 > >>     with 1048577 entries
 > >>     BackupPC_refCountUpdate: processing host mark-desktop #884
 > >>     deltaFile
 > >>     /var/lib/backuppc/pc/mark-desktop/884/refCnt/poolCntDelta_1_0_5_38457
 > >>     with 409030 entries
 > >>     BackupPC_refCountUpdate: computing totals for host mark-desktop
 > >>     BackupPC_refCountUpdate: host mark-desktop got 0 errors (took 595
 > >>     secs)
 > >>     BackupPC_refCountUpdate total errors: 0
 > >>     Xfer PIDs are now
 > >>     Finished BackupPC_refCountUpdate (running time: 596 sec)
 > >>     Xfer PIDs are now
 > >>     [backuppc@fuegoberlin mark-desktop]$
 > >>
 > >>
 > >>
 > >>     _______________________________________________
 > >>     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
 > >> 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
 > > 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
 > 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
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/

Reply via email to