Bookmarks with Nextcloud

Revision as of 15:16, 24 June 2023 by Heiko (talk | contribs) (→‎iOS or Android devices)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Nextcloud can handle all your bookmarks...this is REALLY handy if you use multiple devices, Terminal Servers and such.

You can learn all about the built-in and third-party apps here:

iOS or Android devices

Since the usual floccus-Plugins won't work on mobile device browsers[1] there are special apps to manage your bookmarks. This works just fine, but is a bit "unhandy". And using the Nextcloud-Web-App is just also not cool (due to login, 2FA and the overengineered app).

However, you can export your bookmarks on a daily basis to HTML and use it otherwise...


ℹ️ The basic idea is to make backups from Nextcloud-bookmarks and make them (not so much) protected available on the website, so you can access it from every browser as long as you remember your credentials.
🚧 You can't just copy these bits and it will work. But for anyone with decent Linux skills, this is fairly simple. Just adjust paths and off you go!
  • Make sure, your bookmarks are backupped:
    Nc bookmarks settings backup.png
  • Create a .htpasswd in your public path
deep-thought bookmarks # cat .htaccess 
AuthType Basic
AuthName " Bookmarks"
AuthUserFile /var/www/_htaccess/bookmarksUsers
Require valid-user
deep-thought bookmarks # 
  • Set a password:
deep-thought _htaccess # htpasswd bookmarksUsers heiko
New password: 
Re-type new password: 
Adding password for user heiko
deep-thought _htaccess # 
  • Run this script nightly:
#set -x

# Documentation:

# Globals
GFOLDERSOURCE="/home/nextcloud-data/heiko/files/Bookmarks Backups"

# Functions

# Main
GFILEBOOKMARKS="`find "${GFOLDERSOURCE}" -type f | sort | tail -1`"

echo "Newest bookmarks file: \"${GFILEBOOKMARKS}\"."

echo "Publishing bookmarks file: \"${GFILEBOOKMARKS}\" to \"${GFILETARGET}\""

  • Might want to use a cronjob like this:
# Publish bookmarks
0 7 * * *   /root/bin/ >> /dev/null 2>&1