Skip to content

Log File with Date and Timestamp #69

@tmanka

Description

@tmanka

Hoping someone here has an example of how to have the logfile name contain date and time stamp. I have not been successful finding an example that works nor have any of my attempts worked:

-rw-r--r-- 1 root root   1800 Jan 16 23:12 'snapraid_$(%D+$T).log'
-rw-r--r-- 1 root root   1800 Jan 16 23:05 'snapraid_$(date+%F).log'
-rw-r--r-- 1 root root   7954 Jan 17 08:03 'snapraid_$(date +%Y%m%d%H%M%S).log'
-rw-r--r-- 1 root root   1800 Jan 16 23:01  snapraid_%D-%T.log
-rw-r--r-- 1 root root 958523 Jan 16 22:58  snapraid_%Y-%m-%d_%H-%M-%S.log

Please let me know if there is a suggested way to accomplish this in the snapraid-runner framework.

Thank you!

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