falense / b2_fuse

FUSE integration for Backblaze B2 Cloud storage
MIT License
241 stars 28 forks source link

Auto Mount on boot #18

Closed kushalraha closed 7 years ago

kushalraha commented 7 years ago

Is there a way to mount this automatically on boot and also keep it in the backgroud without displaying it's continuous output?

mattrummler commented 7 years ago

Yes, here's what I did (NOTE: these are the notes I took down so I would be able to repeat this but there is a chance I missed something in my notes... also this was on a Ubuntu 16.04 server so the directory layout might need adjusting for your version of linux... though probably not):

start on filesystem
exec python /etc/b2fuse/b2fuse.py /mnt/b2fuse-mount

python b2fuse.py /mnt/b2fuse-mount

Good luck!

mattrummler commented 7 years ago

Just in case it's useful, I actually setup TWO fuse mounts in attempt to try to deal with the problems that sondree mentions with too many files in a bucket. I did that by duplicating all of the steps, naming the first /etc/b2fuse0 and the second /etc/b2fuse1 ... and the same with the mount directories, (and then of course in /etc/init/b2fuse.conf there are two lines instead of one

falense commented 7 years ago

@mattrummler This is great! I did not know that this was possible. Are you familiar with git? I would be more than happy to include a section about this in the general readme. Could you make me a pull request for a readme update?

I could ofcourse just add it myself, but if you made a pull request you would be an official contributor to B2Fuse.

Best Sondre

mattrummler commented 7 years ago

@sondree Reasonably familiar with git & I will definitely get to this. I appreciate your giving me a chance to contribute. I generally use git in Netbeans so not @ the commandline. This may take me a few days to get up to speed (I have no idea where git lives on my dev machine...). As soon as I am up to speed I will happily contribute this to the readme. Thanks!

falense commented 7 years ago

I still think this would be a great addition to B2Fuse. Let me know if you are still on it or you want me to add it to my TODO list.

Best

mattrummler commented 7 years ago

Hi Sondree... Very sorry to have not followed through.

I am currently fighting a server that has failing hardware somewhere but the spread of errors is all over the place so identifying what the problems are is proving very time consuming. I will get to this soon, (within a week). If that's too long please go ahead and add what I wrote to the documentation.

Thanks again!!

On Fri, Nov 4, 2016 at 2:33 PM, Sondre Engebraaten <notifications@github.com

wrote:

I still think this would be a great addition to B2Fuse. Let me know if you are still on it or you want me to add it to my TODO list.

Best

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-258540244, or mute the thread https://github.com/notifications/unsubscribe-auth/AFKIYEOVFxarrQkA6avQdX9NslP1x9ZKks5q65aSgaJpZM4KHdgJ .

Matthew Rummler http://www.linkedin.com/pub/matt-rummler/1/61b/8a8/ 208-856-0012 "The mind is not a vessel to be filled, but a fire to be kindled." - Plutarch

falense commented 7 years ago

No worries :) Just checking in, I understand very well how busy things can be.

Best

On Nov 4, 2016 10:10 PM, "mattrummler" notifications@github.com wrote:

Hi Sondree... Very sorry to have not followed through.

I am currently fighting a server that has failing hardware somewhere but the spread of errors is all over the place so identifying what the problems are is proving very time consuming. I will get to this soon, (within a week). If that's too long please go ahead and add what I wrote to the documentation.

Thanks again!!

On Fri, Nov 4, 2016 at 2:33 PM, Sondre Engebraaten < notifications@github.com

wrote:

I still think this would be a great addition to B2Fuse. Let me know if you are still on it or you want me to add it to my TODO list.

Best

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-258540244, or mute the thread https://github.com/notifications/unsubscribe-auth/ AFKIYEOVFxarrQkA6avQdX9NslP1x9ZKks5q65aSgaJpZM4KHdgJ .

Matthew Rummler http://www.linkedin.com/pub/matt-rummler/1/61b/8a8/ 208-856-0012 "The mind is not a vessel to be filled, but a fire to be kindled." - Plutarch

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-258548330, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLAWYUXBT4oqjrdVUU_aAzqOHUrWTWcks5q659FgaJpZM4KHdgJ .

mattrummler commented 7 years ago

@sondree in light of the discussion with @Fibroblasto here: https://github.com/sondree/b2_fuse/issues/30 Do you still want me to add my not-so-comprehensive instructions to create a persistent mount point for a bucket? This fstab approach seems likely a better way to go. (I finally got the server stabilized and got up to speed with a workflow for github so am in a position to make the pull request today if you still want my documentation in the Readme ...). I suppose if I don't hear back I'll make the change in my fork and create the pull request and let you decide that way.

Thanks!

falense commented 7 years ago

Yes, it is definately still interesting and relevant.

On Nov 22, 2016 1:26 AM, "mattrummler" notifications@github.com wrote:

@sondree https://github.com/sondree in light of the discussion with @Fibroblasto https://github.com/Fibroblasto here: #30 https://github.com/sondree/b2_fuse/issues/30 Do you still want me to add my not-so-comprehensive instructions to create a persistent mount point for a bucket? This fstab approach seems likely a better way to go. (I finally got the server stabilized and got up to speed with a workflow for github so am in a position to make the pull request today if you still want my documentation in the Readme ...). I suppose if I don't hear back I'll make the change in my fork and create the pull request and let you decide that way.

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-262110827, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLAWW5qQNPELARzFPUQ4m_jwv-1M4Kmks5rAjaXgaJpZM4KHdgJ .

mattrummler commented 7 years ago

Hello sondree, having troubles with my git setup interfacing properly with github, though I've got the documentation changed in my fork (and the subsequent branch I made). I'll get it worked out soon and get the pull request created. Thanks for the patience

On Wed, Nov 23, 2016 at 7:31 AM, Sondre Engebraaten < notifications@github.com> wrote:

Yes, it is definately still interesting and relevant.

On Nov 22, 2016 1:26 AM, "mattrummler" notifications@github.com wrote:

@sondree https://github.com/sondree in light of the discussion with @Fibroblasto https://github.com/Fibroblasto here: #30 https://github.com/sondree/b2_fuse/issues/30 Do you still want me to add my not-so-comprehensive instructions to create a persistent mount point for a bucket? This fstab approach seems likely a better way to go. (I finally got the server stabilized and got up to speed with a workflow for github so am in a position to make the pull request today if you still want my documentation in the Readme ...). I suppose if I don't hear back I'll make the change in my fork and create the pull request and let you decide that way.

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-262110827, or mute the thread https://github.com/notifications/unsubscribe- auth/ACLAWW5qQNPELARzFPUQ4m_jwv-1M4Kmks5rAjaXgaJpZM4KHdgJ

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-262527580, or mute the thread https://github.com/notifications/unsubscribe-auth/AFKIYJL6X0h9fbWNhuxLlRGFtwuvYVYqks5rBE5DgaJpZM4KHdgJ .

-- Matthew Rummler http://www.linkedin.com/pub/matt-rummler/1/61b/8a8/ 208-856-0012 "The mind is not a vessel to be filled, but a fire to be kindled." - Plutarch

falense commented 7 years ago

I had a look at your fork, but I couldn't find the changes you mentioned. Can you link your branch or commit?

Best

mattrummler commented 7 years ago

Hi, so the problem is I can't seem to push my changes to github ... so the commit is local to my Dev machine but it won't recognize that it's different than what's on github. I'll spend some more time on it today (I may just setup git on a Linux virtual machine... attempting to do it in Windows seems to be problematic... though I can't imagine why).

Thanks

On Thu, Nov 24, 2016 at 10:19 AM, Sondre Engebraaten < notifications@github.com> wrote:

I had a look at your fork, but I couldn't find the changes you mentioned. Can you link your branch or commit?

Best

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sondree/b2_fuse/issues/18#issuecomment-262820851, or mute the thread https://github.com/notifications/unsubscribe-auth/AFKIYNt4d52iEQ8lSQ1XXAus-djLCivgks5rBccIgaJpZM4KHdgJ .

-- Matthew Rummler http://www.linkedin.com/pub/matt-rummler/1/61b/8a8/ 208-856-0012 "The mind is not a vessel to be filled, but a fire to be kindled." - Plutarch

falense commented 7 years ago

Can you show the output of "git status"?