added systemd service and timer for quota update
This commit is contained in:
parent
ea9346d25d
commit
95fde8e58f
4 changed files with 26 additions and 4 deletions
|
|
@ -10,8 +10,6 @@ class Command(BaseCommand):
|
|||
parser.add_argument("--repository-id", type=int, nargs="+")
|
||||
|
||||
def handle(self, *args, **options):
|
||||
print(options)
|
||||
|
||||
qs = BorgRepository.objects.all()
|
||||
|
||||
if options.get("user_id"):
|
||||
|
|
@ -20,8 +18,6 @@ class Command(BaseCommand):
|
|||
if options.get("repository_id"):
|
||||
qs = qs.filter(pk__in=options.get("repository_id"))
|
||||
|
||||
print(qs)
|
||||
|
||||
for repo in qs:
|
||||
repo.refresh_quota()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue