#!/bin/bash # Create a temporary output directory mkdir output.tmp # Copy all HTML files over cp -vr html/* output.tmp # Copy the logs mkdir output.tmp/logs rsync -av --delete /var/log/lubuntu-ci/* output.tmp/logs/ # Make the output directory live rsync -av --delete output.tmp/* output/