10 lines
226 B
Bash
10 lines
226 B
Bash
#!/bin/bash
|
|
# vi: set tabstop=4 shiftwidth=4 expandtab :
|
|
BASENAME=$(basename "$(cd "$(dirname "$0")" && pwd)")
|
|
ARCHIVE=$BASENAME-$(date +%Y%m%d)
|
|
|
|
echo 'Backup...'
|
|
tar -cf - -- \
|
|
*.sh \
|
|
| 7z a -bso0 -si $ARCHIVE.tar.7z
|