SMB Mount to backup directory prevents mounting parent directories of share

Bug #1962593 reported by Dan Sorak
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Déjà Dup
deja-dup (Ubuntu)

Bug Description

May also apply to the "duplicity" package and is related to network "mount"s:

To reproduce:
* Set up a writeable SMB share: smb://
* Create a subdir: smb://
* Using "deja-dup" -> "Storage location" set:
    Storage location: Network Server
    Network Location: smb://
    Folder: MyMachineBackup
* REBOOT THE MACHINE (or clear any cached mounts to "smb://")
* Select "deja-dup" -> "Overview" -> "Back Up Now..."
* Allow the backup to start, but not finish
* Go to Nautilus (file browser) -> "+ Other Locations"
  - At the bottom set "Connect to server" to: smb://

* The parent SMB directory "smb://" is inaccessible because the "UbuntuBackup" subdir is currently mounted
* Can happen at semi-random times if the backup is on a schedule
* This is especially a problem when backing up remotely over a VPN which can take a long time
* Prevents access to all parent folders of the backup folder
* Nautilus will hang, unable to mount the "backup" parent directory
* Also a problem if the "smb://" folder is bookmarked in nautilus
* This problem is persistent throughout backup process and for a period of time afterwards until the mount to "UbuntuBackup" times out or the backup process exits

Possible solutions:
* Add a configuration option to deja-dup/duplicity to specify the "Share root" and mount that first before accessing the configured "Network Location"
* Have deja-dup or duplicity attempt to mount the parent directory/directories first by starting at the root of the SMB share and walking down the directory tree until a successful mount is made. In the above example, start by attempting to mount "smb://" first and then "smb://" (in the case of deeper folder structures, try each one successively)

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: deja-dup 40.7-0ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-30.33~20.04.1-generic 5.13.19
Uname: Linux 5.13.0-30-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 1 08:51:47 2022
ExecutablePath: /usr/bin/deja-dup
InstallationDate: Installed on 2021-09-13 (168 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
 PATH=(custom, user)
SourcePackage: deja-dup
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dan Sorak (dsorak) wrote :
Revision history for this message
Dan Sorak (dsorak) wrote :

Maybe not a "bug" per se, but definitely an unwanted side-effect of the network backup process.

Dan Sorak (dsorak)
description: updated
Vej (vej)
Changed in deja-dup (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Vej (vej) wrote :

Hello Dan,

thank you for reporting this bug. I am triaging this as "Medium" for Ubuntu because it has "a moderate impact on a core application" but "Low" for Déjà Dup (upstream) as it does not affect any interaction in the application itself.

Some comments on the proposed solutions:

Déjà Dup is unlikely to implement a new "Share root" because that goes against the policy of providing a tool for (new) standard users and keeping the interface as simple as possible.

The second solution is much better in this regard as it hides the workaround from the user.

Leaving Déjà Dup as "New" for now as I will have to check who does the mount in the end.

Changed in deja-dup:
importance: Undecided → Low
Dan Sorak (dsorak)
summary: - SMB Mount to backup directory prevents mounting parent directory
+ SMB Mount to backup directory prevents mounting parent directories
summary: - SMB Mount to backup directory prevents mounting parent directories
+ SMB Mount to backup directory prevents mounting parent directories of
+ share
Revision history for this message
Michael Terry (mterry) wrote :

Deja Dup could maybe be smarter in the specific case of SMB mounts and only try to mount the root folder...

If you switch your settings from:

    Network Location: smb://
    Folder: MyMachineBackup


    Network Location: smb://
    Folder: UbuntuBackup/MyMachineBackup

do things work like you expect?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.