Bookmarks with Nextcloud: Difference between revisions
Jump to navigation
Jump to search
(→HowTo) |
(→HowTo) |
||
Line 25: | Line 25: | ||
deep-thought _htaccess # | deep-thought _htaccess # | ||
* Run this script nightly: | * Run this script nightly: | ||
#!/bin/bash | |||
#set -x | |||
# Documentation: https://www.wurst-wasser.net//wiki/index.php/Bookmarks_with_Nextcloud | |||
# Globals | |||
GFOLDERTARGET="/var/www/html/bookmarks" | |||
GFILETARGET="${GFOLDERTARGET}/index.html" | |||
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}\"" | |||
cp "${GFILEBOOKMARKS}" "${GFILETARGET}" | |||
#EOF |
Revision as of 21:01, 21 June 2023
About
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: https://apps.nextcloud.com/apps/bookmarks
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".
However, you can export these bookmarks on a daily basis to HTML and use it otherwise...
HowTo
deep-thought bookmarks # cat .htaccess AuthType Basic AuthName "Wurst-Wasser.net 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:
#!/bin/bash #set -x # Documentation: https://www.wurst-wasser.net//wiki/index.php/Bookmarks_with_Nextcloud # Globals GFOLDERTARGET="/var/www/html/bookmarks" GFILETARGET="${GFOLDERTARGET}/index.html" 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}\"" cp "${GFILEBOOKMARKS}" "${GFILETARGET}" #EOF