Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Allow to specify a start date/time to be able to set the intiale date of the oplogs (be integrated with sanpshot bakcup procedure) #7

@ericfranckx

Description

@ericfranckx

Hi,
it should be to be able to have a parameter like -d dd/mm/yyyy-hh:mm:ss ( or now ) that will tell to the the tool from which it should start the first oplogs entry it should take into account.

Example:

  • do a snapshot on disk level at 09:30:00
  • start the backup.sh tool and tells that I want to be able to recover from the start of my snapshot (and don't any oplogs older then 09:25 for example ) --> snapshot.sh ... -d 09:25:00 (so take the actual day if not set).
    So only oplogs generates since 09:25 will be extract and write in the OS log files and don't need the huge entries in the oplogs before the snapshot --> already include in the snapshot.

Also a retention time parameter like keep (-k) should be nice like you tells that you want to keep minimum xx times (specified like HH:MM:SS).
So again if you do a snapshot every hour, and set it to 1:10, you keep always 1:10 of oplogs and good reply to the last snapshot. (The tool should delete old files or renamed the files that contains the older oplogs entries --> condition : all oplogs in a files should be older than the -k parameter; then good candidate files are automatically renamed with an extra extension like .del and so we can delete the files, copy it to another location (archive it).

Regards,

Eric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions