Minor bugfix
This commit is contained in:
parent
e7f6ee9b9b
commit
7f94a10a0e
|
@ -1,5 +1,10 @@
|
||||||
# foxBackup
|
# foxBackup
|
||||||
|
|
||||||
|
## dependencies
|
||||||
|
* scp
|
||||||
|
* gzip
|
||||||
|
* gpg
|
||||||
|
|
||||||
## keys
|
## keys
|
||||||
|
|
||||||
-f = full backup (if not = increment)
|
-f = full backup (if not = increment)
|
||||||
|
|
|
@ -5,7 +5,6 @@ DIRECTORY=`dirname "$ABSOLUTE_FILENAME"`
|
||||||
|
|
||||||
source ${DIRECTORY}/config
|
source ${DIRECTORY}/config
|
||||||
|
|
||||||
uuid=`uuid`
|
|
||||||
stamp=`date +%s`-`date +"%Y%m%d-%H%M%S-I"`
|
stamp=`date +%s`-`date +"%Y%m%d-%H%M%S-I"`
|
||||||
do_full=""
|
do_full=""
|
||||||
do_quet=0
|
do_quet=0
|
||||||
|
@ -136,7 +135,11 @@ if [ -n "${sshhost}" ]
|
||||||
then
|
then
|
||||||
for xfile_item in `ls ${prefix}/compressed`
|
for xfile_item in `ls ${prefix}/compressed`
|
||||||
do
|
do
|
||||||
scp -B -i ${sshkey} ${prefix}/compressed/${xfile_item} ${sshuser}@${sshhost}:${sshpath} > /dev/null
|
if [ "${do_quet}" == 0 ]
|
||||||
|
then
|
||||||
|
echo "Sending via SSH $xfile_item"
|
||||||
|
fi
|
||||||
|
scp -B -P ${sshport} -i ${sshkey} ${prefix}/compressed/${xfile_item} ${sshuser}@${sshhost}:${sshpath} > /dev/null
|
||||||
if [ "$?" == 0 ]
|
if [ "$?" == 0 ]
|
||||||
then
|
then
|
||||||
rm -f ${prefix}/compressed/${xfile_item}
|
rm -f ${prefix}/compressed/${xfile_item}
|
||||||
|
|
Loading…
Reference in New Issue