Hi,

I'm encountering strange issues with some of the backups using tar on linux 
where a host is regularly failing with

      tarExtract: moveFileToOld(....): can't rename (...)

For this host backup 12 does not exists however moveFileToOld is attempting to 
move files to backup#12.

      Backup#   Type    Filled  Level   Start Date      Duration/mins   
Age/days                Server Backup Path
      0         full    yes     0       7/23 20:00      7.1     10.0
      /var/lib/backuppc/pc/crb/0
      1         full    yes     0       7/24 03:27      5.5     9.7
      /var/lib/backuppc/pc/crb/1
      4         incr    no      1       7/24 03:39      0.8     9.7
      /var/lib/backuppc/pc/crb/4
      5         incr    no      1       7/24 03:40      0.8     9.7
      /var/lib/backuppc/pc/crb/5
      6         incr    no      1       7/25 03:00      0.8     8.7
      /var/lib/backuppc/pc/crb/6
      7         incr    no      1       7/26 03:00      0.9     7.7
      /var/lib/backuppc/pc/crb/7
      8         incr    no      1       7/27 03:00      0.8     6.7
      /var/lib/backuppc/pc/crb/8
      9         incr    no      1       7/28 03:00      0.8     5.7
      /var/lib/backuppc/pc/crb/9
      10        incr    no      1       7/29 03:00      0.9     4.7
      /var/lib/backuppc/pc/crb/10
      11        incr    no      1       7/30 03:00      0.9     3.7
      /var/lib/backuppc/pc/crb/11
      16        partial         yes     0       8/2 17:52       0.0     0.1
      /var/lib/backuppc/pc/crb/16

As a workaround I've added '-e $pathOld' to the rename if statement and all 
seem to work without any errors. Is this a known issue where an attempt is made 
to move file to a backup # that does not exist?

      backuppc@hpci-backup:/usr/local/BackupPC/bin$ diff 
BackupPC_tarExtract-20180725-tkpmodded BackupPC_tarExtract
      454c454,455
      <             if ( -e $pathOld && !rename($pathNew, $pathOld) ) {
      ---
      >             if ( !rename($pathNew, $pathOld) ) {
      >             #if ( -e $pathOld && !rename($pathNew, $pathOld) ) {

Thanks,

Tarak





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

Reply via email to