Making v-backup-user able to upload backup to FTP if FTP folder is not set

Before this fix v-backup-user was unable to upload backup to FTP if $BPATH (FTP folder) is not set
This commit is contained in:
dpeca 2017-04-19 15:36:43 +02:00 committed by GitHub
commit 367d0b34ef

View file

@ -557,6 +557,9 @@ ftp_backup() {
check_result "$E_PARSING" "$error"
fi
if [ -z $BPATH ]; then
BPATH="/";
fi
# Debug info
echo -e "$(date "+%F %T") Remote: ftp://$HOST$BPATH/$user.$date.tar"