Archived
0

import script

This commit is contained in:
dedic-one
2021-06-04 13:05:36 +03:00
parent 7f386796a4
commit b3adb0cac9
6 changed files with 58 additions and 0 deletions

9
backup.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/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