Skip to content

Commit 367d0b3

Browse files
authored
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
1 parent 0cbb361 commit 367d0b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-backup-user

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ ftp_backup() {
557557
check_result "$E_PARSING" "$error"
558558
fi
559559

560+
if [ -z $BPATH ]; then
561+
BPATH="/";
562+
fi
560563

561564
# Debug info
562565
echo -e "$(date "+%F %T") Remote: ftp://$HOST$BPATH/$user.$date.tar"

0 commit comments

Comments
 (0)