gns3 developers should never implement a change that puts timestamps in gns3 config files #2118
Replies: 6 comments
-
Yeah. I am not recommend closing this. The gns3 developers should never put timestamps in those config files. |
Beta Was this translation helpful? Give feedback.
-
So basically you want someone to redesign gns3 so time stamps aren’t in the config files to make it easier for you to detect when you need to do a backup? I don’t think you’ve made a very good case for this. That being said the config files are all json. You can filter out the time stamps via a json filter then compare that hash afterwards. |
Beta Was this translation helpful? Give feedback.
-
The timestamps are not in the config files. Putting timestamps in configuration files is a complete nightmare. |
Beta Was this translation helpful? Give feedback.
-
Oh yeah. I was thinking about the controller config. Where is the timestamp in the server ini file? I mean same thing could apply for a .ini. Parse out the dynamic stuff then diff that. |
Beta Was this translation helpful? Give feedback.
-
There is no timestamp.
This is incomplete and a mess (because I just started to learn Visual Studio yesterday), but it was going to be my template and something in the code works: Oh, I had to delete the code because github wants to reformat it and I do not know how to upload literal text to a post and I do not have the time to figure it out. My code chose option ii because I know the file is less than 100 lines. |
Beta Was this translation helpful? Give feedback.
-
the timestamps are not a worry anymore, per se, because the gns3_gui has temporal values in it, i.e. ...so I will just deal with it, that they are in there. putting things like, possibly the history of host binding, hidden away in the registry or encrypted somewhere would be a real pain. |
Beta Was this translation helpful? Give feedback.
-
Embedding a timestamp in any of the gns3 config files (in gns3 2.x the config files are "gns3_server", "gns3_gui" and "gns3_controller") would cause a nightmare.
Do not embed timestamps in the the gns3 config files.
So, I will explain. I have a pre-gns3 and a post-gns3 in my powershell script to start gns3.
Long story, but I partially explain here before I explain it another thread I will post for a requested enhancement.
My post-gns3 backs up all the gns3 config files and the gns3 log files (dealing with the gns3 log files is another thread that I am not prepared to write up now).
My post-gns3 causes many, many unnecessary files to be backed up. I figured out how to solve this problem around 8 months ago and promptly forget the solution.
But the solution is found in "Windows PowerShell Best Practices" by Ed Wilson, Chapter 1. The book text, follows, and is tangential to how I will solve my problem - if and only if no timestamps are included in the config files - "Not every device is backed up each day. I have no way of knowing what the latest time stamp will be in each recursive directory"
For my script:
the file hashes of the config files can be determined in pre-gns3 and then calculated post-gns3. Consequently, I will only have to backup the config files that have changed.
This is a very, veryt big deal to me.
Beta Was this translation helpful? Give feedback.
All reactions