Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe
cookie

Mirror a Confluence Site

  • Laur Ivan

Laur Ivan

Oct 22, 2018 • 1 min read
Mirror a Confluence Site

TL;DR: wget has a mode capable of saving cookies.

The other day I thought it'd be interesting to have a local copy of a confluence wiki, to avoid hitting the internet every time I needed a howto. So, I've tried curl first and failed (probably my fault really). So, after a few tries, I managed to get a workflow in place.

First, we need to log in onto the site:

./wget -qO- --keep-session-cookies \
  --save-cookies cookies.txt \
  --post-data 'os_username=<user>&os_password=<user>' \
  https://site.com/confluence/login.action

Here, you need to replace the user name and password with something meaningful. Please note that text must be escaped with something like this encoder.

The command will create a file cookies.txt which will contain the session cookie. Now, all you need to do is to mirror the site:

./wget --load-cookies cookies.txt \
  -mkxKEp \
  -np \
  https://site.com/confluence/display/PROJECT/

..and presto! you have the site mirrored locally!

HTH,

Install MinIO on TrueNas

Install MinIO on TrueNas

An update of MinIO in June 2025 removed the admin console from the UI, leaving you only the command line. So, now you have to use the CLI (mc) to set things up like users, buckets ... This tutorial aims to provide a minimal set of instructions so you can install
Oct 19, 2025 1 min read
Set Up MinIO Console on TrueNas
Featured

Set Up MinIO Console on TrueNas

An update of MinIO in June 2025 removed the admin console from the UI, leaving you only the command line. Fortunately, a fork called minio-console restores this functionality. This is a tutorial on how to set up minio-console on TrueNAS if you have an existing MinIO instance (updated). Note: If
Oct 19, 2025 2 min read
Logging in Rust

Logging in Rust

I need to record the logging from my application. According to this, rust can do logging via the log crate: use log::{info, warn}; pub fn example() { info!("Here's some info"); warn!("This is a warning!"); } In addition, you can use the env_logger
May 31, 2025 1 min read
Laur's blog © 2026
  • Sign up
Powered by Ghost