Skip to content

Instantly share code, notes, and snippets.

[ `id -u` -ne 0 ] && [ -z "$TMUX" ] && tmux new-session -AD -s $HOSTNAME && exit 0

Manual Rotate Script

It's a simple file or directory rotation script. Just set up the 2 variables (OBJECT and ROTATE) and run the script.

Example Usage

OBJECT="backup.tar.bz2" ROTATE=7 bash manualrotate.sh