Skip to content

rotate doesn't work while using in a config file #248

Open
@tferriez

Description

@tferriez

Hello,

The following config file works as expected except the rotate option :

production:
host: localhost
port: 27017
username: admin
password: xxxx
ssl:
enabled: true
insecure: true
client_cert_file: /etc/ssl/xxxxxx.pem
log_dir: /var/log/mongodb-consistent-backup
backup:
method: mongodump
name: default
location: /var/lib/mongodb-consistent-backup
rotate:
max_backups: 2
archive:
method: tar
notify:
method: none
upload:
method: none

The log indicates :

[2018-01-23 17:15:11,566] [INFO] [MainProcess] [Stage:run:95] Completed running stage mongodb_consistent_backup.Archive with task Tar in 2.02 seconds
[2018-01-23 17:15:11,572] [INFO] [MainProcess] [Rotate:rotate:57] Backup rotation is disabled, skipping
[2018-01-23 17:15:11,573] [INFO] [MainProcess] [Rotate:symlink:83] Updating default latest symlink to current backup path: /var/lib/mongodb-consistent-backup/default/20180123_1714
[2018-01-23 17:15:11,573] [INFO] [MainProcess] [Rotate:symlink:89] Updating default previous symlink to: /var/lib/mongodb-consistent-backup/default/20180123_1713
[2018-01-23 17:15:11,574] [INFO] [MainProcess] [Main:run:461] Completed mongodb-consistent-backup in 22.12 sec

Regards,

Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions