/tmp/wallet20110124-04-46.crypt: No such file or directory
For some reason the file could not be encrypted.
Has the file /tmp/wallet20110124-04-46 been created by bitcoind backupwallet ?
I suspect backupwallet doesn't accept full pathnames
PS: Here is a proposal to make the script more robust :
#!/bin/bash
TS=$(date "+%Y%m%d-%H-%M")
WALLET=/tmp/wallet${TS}
WALLET_E=/tmp/wallet${TS}.crypt
if
echo -n making backup...
bitcoind backupwallet $WALLET
[[ ! -s "$WALLET" ]]
then echo failed
elif
echo done
echo -n encrypting....
! gpg -r myusername --output $WALLET_E --encrypt $WALLET
then echo failed
elif
echo done
echo -n copying to distant server...
! scp $WALLET_E user@myserver.org:~/wallets/
then echo failed
else echo done
fi
rm -f $WALLET $WALLET_E