Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of external drives #2768

Open
1 task done
raev33 opened this issue Sep 26, 2017 · 8 comments
Open
1 task done

Handling of external drives #2768

raev33 opened this issue Sep 26, 2017 · 8 comments

Comments

@raev33
Copy link

raev33 commented Sep 26, 2017

  • I have searched open and closed issues for duplicates.

Environment info

  • Duplicati version: 2.0.2.1
  • Operating system: Ubuntu 16.04
  • Backend: Backblaze B2

Description

I have a backup with two main directories. One local and one on an external hard drive. The files on the local hard drive are files i'm using right now - and from time to time I archive them on the external hard drive - this means there are a lot of identical files in the two directories.
The issue is that Duplicati only can start a backup when the external hard drive is plugged in, otherwise it simply dismisses the task - though it still can access the local main directory.

Steps to reproduce

  1. Make a new backup with a local directory and a directory on an external hard drive.
  2. Unplug the external hard drive.
  3. Try to start the backup.
  • Actual result:
    Duplicati dismisses the whole backup process.
  • Expected result:
    Duplicati should backup the local directory, even though the external directory is missing.
    It would be even better if there was an option to mark external drives - so that a missing main directory, not necessarily would be read as a deleted directory
@Pectojin
Copy link
Member

I believe this is issue is the same as my issue #2760 or at least a fix would likely resolve both.

Also, interesting point about external drives then being considered "deleted". There isn't really be a way to know for sure if it was deleted or removed until Duplicati gets active continious backup that monitors changes on disk.

If you need to recover those "not deleted files" you could go back to a previous backup to restore the external files, but if you only have the drive connected occassionally you'd have to look around for the right backup job, which contains the files.

Crashplan's restore view is a bit more useful for that kind of situation, since it can show all files including deleted and then lets you pick a version for the specific file/folder instead of viewing a given restore point.

@kenkendk
Copy link
Member

@raev33 You can add the option --allow-missing-source if you want to ignore the missing source drive. Does this solve your problem?

@kenkendk kenkendk added documentation pending user feedback needs information from the original poster and removed enhancement labels Sep 28, 2017
@raev33
Copy link
Author

raev33 commented Oct 2, 2017

Yes, partially. I can now backup the local data, but then my external data is still deleted on the backup.

@alexgreen
Copy link

Any further updates in this? I'm considering using Duplicati but the inability to effectively handle external drives that aren't continuously connected would be a total deal-breaker for me.

@Pectojin
Copy link
Member

I'm not aware of any progress having been made specifically on external drives. There has been some work on using USN to keep track of file changes on Windows, but that doesn't immediately translate into a solution for this.

@stewartadam
Copy link

stewartadam commented Sep 6, 2018

+1 was hoping to setup Duplicati to backup local files on the PC as well as files from an external drive when attached, would be nice to have an option skip, not erase, backups with missing files (#2516)

@Technoguyfication
Copy link

Isn't it possible to just create two separate backups to the same location, that way when the external HDD isn't plugged in it doesn't stop the main backup?

@warwickmm warwickmm added enhancement and removed pending user feedback needs information from the original poster labels Oct 18, 2020
@ts678
Copy link
Collaborator

ts678 commented Nov 12, 2020

Using two backups also allows the backup for the maybe-there-maybe-not drive to test for drive presence and skip if not present.
run-script-before, see how it looks, give exit code:

# The following exit codes are supported:
#
# - 0: OK, run operation
# - 1: OK, don't run operation
# - 2: Warning, run operation
# - 3: Warning, don't run operation
# - 4: Error, run operation
# - 5: Error don't run operation
# - other: Error don't run operation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants