Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log File with Date and Timestamp #69

Open
tmanka opened this issue Jan 17, 2025 · 0 comments
Open

Log File with Date and Timestamp #69

tmanka opened this issue Jan 17, 2025 · 0 comments

Comments

@tmanka
Copy link

tmanka commented Jan 17, 2025

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant