Changeset f9878a2 in rattail


Ignore:
Timestamp:
11/28/2022 04:36:17 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
3a8a48c
Parents:
f830956
Message:

Use --glob-archives instead of --prefix for borg prune

per deprecation warnings in borg 1.2 - AFAIK this is still safe for
borg 1.1 as well though..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/commands/backup.py

    rf830956 rf9878a2  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2019 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    424424            # borg prune
    425425            cmd = [borg, 'prune',
    426                    '--prefix', '{}-'.format(hostname)] + keep
     426                   '--glob-archives', '{}-*'.format(hostname)] + keep
    427427            if self.verbose:
    428428                cmd.extend([
Note: See TracChangeset for help on using the changeset viewer.