diff options
Diffstat (limited to 'backup-www')
| -rwxr-xr-x | backup-www | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/backup-www b/backup-www deleted file mode 100755 index 440a060..0000000 --- a/backup-www +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -e - -die() { - echo $1 >&2 - exit 1 -} - -# File contains key variable definition. -. "$HOME/.backup-www" -[[ -z "$key" ]] && die 'No $key definition.' - -name="backup-$(date --rfc-3339=seconds | cut -c -19 | tr ': ' '-_').des3" - -sudo find /etc /home/anton /var/www ! -name 'backup-*.des3' -print0 |\ - sudo cpio --create --dot --null |\ - openssl enc -des3 -k "$key" > "$name" -sha512sum "$name" > "$name.sha512sum" -scp "$name"* gd.bobov.name: -echo "File name: $name" |
