In line 66 of the docker_backup script, the dropboxfolder variable is not used to define the destination folder, the backupfile is used twice instead. This causes the backup files to be uploaded to dropbox root directory.
  
  
    
        
          |  | $dropboxuploader upload ./backups/$backupfile $backupfile |