Skip to content

Postrotate not working #42

Open
Open
@jp1987

Description

@jp1987

I use the following config:

logrotate_scripts:
  - name: node
    path: "/var/log/forever/*.log"
    options:
      - daily
      - dateext
      - missingok
      - rotate 30
      - compress
      - delaycompress
      - notifempty
      - copytruncate
    scripts:
      postrotate: "mv /var/log/forever/*.gz /var/log/forever/archive"

The logs are never rotated into the archive folder (running the command manually works). What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions