#!/bin/bash # Usage: bash backup.sh /path/to/target/ # alias sy='rsync -avp --partial --progress --human-readable' # Set backup location here bak=$1/homeprofile_backup_$(date +%F_%T%z) # Make a timestamped directory there. mkdir -v "$bak" # Backup the Chromium profile. sy -R ~/.config/chromium "$bak"