From 5e9fb6b6079597e3c5af1a660e338e0a78c559bd Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 26 Oct 2011 18:53:24 +0200 Subject: [PATCH] Rename tgz to arc in scripts/backup tgz looks silly when you hack the script to use something other than tar+gzip. --- scripts/backup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/backup b/scripts/backup index 2c90df765..20a2a6abb 100755 --- a/scripts/backup +++ b/scripts/backup @@ -52,8 +52,8 @@ remote_email= mkdir -p $local_dir # Tar up the data directory -tgz=$local_dir/$name.tar.gz -tar czf $tgz . +arc=$local_dir/$name.tar.gz +tar czf $arc . # Copy the backup to another machine with SSH, in the background # @@ -63,11 +63,11 @@ tar czf $tgz . # user's privileges are carefully limited. if [ "$remote_host" ] then - nohup sh -c "scp -qBp '$tgz' '$remote_host:$remote_dir' 2>&1 | mail -e -s 'Empire backup save failed' '$email'" /dev/null 2>&1 & + nohup sh -c "scp -qBp '$arc' '$remote_host:$remote_dir' 2>&1 | mail -e -s 'Empire backup save failed' '$email'" /dev/null 2>&1 & fi # # A more secure alternative is to replace the scp command by something like -# ssh -q -T -o BatchMode=yes -o IdentitiesOnly=yes -i "$HOME/.ssh/empire_id_rsa" $remote_host <"$tgz" +# ssh -q -T -o BatchMode=yes -o IdentitiesOnly=yes -i "$HOME/.ssh/empire_id_rsa" $remote_host <"$arc" # where $HOME/.ssh/empire_id_rsa contains a private key specifically # created for Empire backup, without a passphrase, and authorized_keys # on $remote_host contains the matching public key prepended by -- 2.43.0