-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improving snapshot comments #23
Comments
Totally open to it - I will take a look and integrate it. Thank you!
Yes, though this will require some more changes. The current logic does not fix the duration of a snapshot when it is taken. Instead, it scans and ensures the required number of snaps are kept every time the schedule runs. So there is no way to tell beforehand if a snap will be kept for a month, 6 months, etc. I can see how knowing the duration can be helpful. It will require switching to a method where the duration of a snap is fixed as a TTL (time to live) when the snap is taken based on how many snaps exist. Let me think about it. |
Just took a look. The script is great! Have some questions. Btw for me the script did not work, due to the awk line.
Thoughts -
Finally, moving this to post-hook makes sense. But this makes re-editing the json after-the-fact unavoidable. I will need to make some changes to handle this - let me think about it! |
Sad to hear that.. For me its look like this:
Some kind of that, but with the versions. All information already is in log, we need just make squeeze of it in human readable view.
It will increase size of common comment of transaction. I propose take the
It can be done by adding a new item, e.g. Or just cut of long comment after 60 letters :)
I'm agree with it, will require re-editing and pacman have this opportunity by design. It’s quite strange that no one has made a parser yet. I had a look on pacman-contrib package and found only |
Made a bash script as "proof of work" and now using with fzf preview or just itself. Main reason is to get more info about installing, upgrading, deleting packages - which are they.
Idea is simple: parse strings from /var/log/pacman.log after all transactions with packages are completed and updating comment in *-meta.json file. Should work as post installation hook i guess.
Is it possible to add this feature in main python code? I'm not so good in Python, so I made a bash example how it might look like.. :)
The second question is: is it possible make a comment for snapshots with trigger
S
, e.g.Hourly shapshot
,Weekly shapshot
, etc?The text was updated successfully, but these errors were encountered: