todiadiyatmo/bash-backup-rotation-script

Multiple problem with DEST_DIR="$DEST_BASE_DIR/$HOST/$DATABASE"

Opened this issue · 0 comments

nfork commented

Hi,
Good work this script !
But little bug with DEST_DIR="$DEST_BASE_DIR/$HOST/$DATABASE".

  1. backup.sh:33
    mkdir: cannot create directory '/thebasedir/localhost/mydatabase': No such file or directory.

  2. backup_rotation.sh, line 397
    echo "mkdir $FTP_TARGET_DIR" >> $TMP_DIR/backup.incoming/ftp_command.tmp
    The exection of this ftp script say me that it cant create the dir, because there is 3 (or 2) directory to create. FTP seems only works with 1 directory to create.

Bisous.