tasket / wyng-backup

Fast backups for logical volumes & disk images
GNU General Public License v3.0
251 stars 16 forks source link

Error when using `send` with `--autoprune` #170

Closed ldeso closed 1 year ago

ldeso commented 1 year ago

Hi, when using using send with the --autoprune option, I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/wyng", line 4635, in <module>
    monitor_send(storage, aset, selected_vols, monitor_only=False)
  File "/usr/local/bin/wyng", line 3368, in monitor_send
    for vol in aset.vols:   autoprune(vol, apmode="full")
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/wyng", line 3544, in autoprune
    if len(vol.sesnames) < 2:   return False
           ^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'sesnames'

Using send towards a newly-created archive works, but if I use the --autoprune option I get this error when I try to send a second time.

tasket commented 1 year ago

@de-souza Thanks for reporting this! A fix has been posted to the main branch.