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

snapshots may get written to empty mountpoint #1016

Open
mokafolio opened this issue Jul 13, 2019 · 10 comments
Open

snapshots may get written to empty mountpoint #1016

mokafolio opened this issue Jul 13, 2019 · 10 comments

Comments

@mokafolio
Copy link

mokafolio commented Jul 13, 2019

Hello,

I am experiencing some weirdness with my setup. I am backing up to an external hdd and it appears to work. The schedule is set to hourly and if the external hdd is connected everything works as expected and the snapshot list in back in time looks correct. If the hdd is not connected though, it shows another list of snapshots which I guess ran while the hdd was not connected. Why is that happening? I'd expect it to simply not take a snapshot if the external hdd is not connected. I am pretty sure its only diffing stuff without copying the backup anywhere in the latter case.

thank you!

EDIT: Related Debian Bug Ticket https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995257

@colinl
Copy link

colinl commented Jul 13, 2019

What do you see if you look in the mount point where the drive would be if it were connected?

@mokafolio
Copy link
Author

Ah, that exactly is the problem. If the external HDD is not connected, it just uses the folder of the mount point to store the backups. Is there any way to disable that behavior? I'd like it to only create backups if the HDD is connected. Thanks!

@colinl
Copy link

colinl commented Jul 14, 2019

How do you run BiT?

@mokafolio
Copy link
Author

I am using the qt client (v. 1.2.0) with basically the default settings.

@colinl
Copy link

colinl commented Jul 14, 2019

I believe there are hooks in BiT that let you run a script before a backup. You could check the drive is mounted in there. I haven't used the scripting but I assume it is documented somewhere.
In the meantime if you empty the mount point folder (make sure the disc is not plugged in!) the it will be pretty obvious that something is wrong as there will be no snapshots shown.

@mokafolio
Copy link
Author

mokafolio commented Jul 15, 2019

where would I find those hooks in the gui version?

@colinl
Copy link

colinl commented Jul 16, 2019

I don't know. Perhaps someone else can tell us how.

@mokafolio
Copy link
Author

So I worked around this. Instead of using the mount point directly as the backup location, I created a folder to use that only exists when the extern HDD is mounted. This should work. Would be cool to find another way though! Thank for all the input!

@buhtz
Copy link
Member

buhtz commented Sep 26, 2022

@mokafolio There is a new forming maintaining team and we do review all issues. Is this problem still relevant for you, can you reproduce it with a newer or the latest release? Did you find a solution?

Tag: Bug, Feedback, Documentation

Here again we have the problem when the destination is a mount point instead of a folder under the mount point.

@emtiu
Copy link
Member

emtiu commented Oct 8, 2022

Yes, I've described the same workaround here: #1230 (comment)

This is definitely something we need to look into.

@emtiu emtiu changed the title showing different snap shot lists depending on external hdd being connected snapshots may get written to empty mountpoint Oct 8, 2022
@buhtz buhtz added this to the 1.3.5 / 1.4.0 milestone Mar 19, 2023
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

4 participants