mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
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:
parent
0cbb3613df
commit
367d0b34ef
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue