#!/bin/bash backup_dir="${1}/apps/piratebox" mkdir -p "${backup_dir}/" sudo cp -a /var/www/piratebox/public/uploads/ "${backup_dir}/" exit 0