SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #!/bin/bash
- DAY=$( date +%d)
- BACKUP_DIR="/tehre/goes/the/backups"
- mkdir -p ${BACKUP_DIR}
- for i in /path/where/important/stuff/is/*
- do
- BASENAME=$(basename $i)
- tar czf ${BACKUP_DIR}/${BASENAME}_${DAY}.tar.gz $i
- done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.