I'm working on zsh script that (wget -pk)'s a webpage for offline viewing. Includes options for easy viewing and listing.
I have one problem. I am unsure of what type of file system i should use to store/organize everything.
Right now i have this
So all bookmarks are downloaded into there own folder under "all"
When a user creates a bookmark, he can specify tags. For each tag, a directory under "tags" is created with the tag name, and a symlink is created to the bookmarks hardcopy in "all"
It works, but it feels stupid. Maybe thats just inexperiance.
Anyways, any better ideas?
You could store the same data in a database like sqlite or mariadb. Those databases are quite handy if you have large amounts of data and enable you to easily expand your database if you want to store more meta data (or rearrange it). On the other hand, if you just want to add some tags to some bookmarks those databases might be overkill.
If you want to get into SQL and the database stuff, you could give sqlite a try. If you think, that your file based solution gets the job done perfectly for you, just stick with it.
Yah SQL is overkill. Thanks thou
I think your solution is quite clean. Stick with it.