Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Server/Datacenter "GIT LFS Storage path"

Felix Herzog
Contributor
March 1, 2019

Hi,

Documenation says:

$BITBUCKET_HOME/shared/data/git-lfs/storage

cannot be changed. But I like to use a different shared storage endpoint as my

$BITBUCKET_HOME/shared

lays. Bevause of different Filesystem parameters. But whatabout creating a symlink there? Will it work and cause no trouble?

 

Thanks

1 answer

0 votes
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2019

 

In my experience a symlink will work without any problem for any parts of that path (e.g., "shared" or "data" or "git-lfs" or "storage").

Just make sure whatever it points to is always available!   (e.g., if you're pointing into a different file-system mount, make sure it's always mounted before Bitbucket starts up!)

Also be aware that "shared/" is quite special should you ever end-up migrating to Bitbucket Data Center, and needs to be a single consistent networked NFS file-system shared by all nodes of your Bitbucket cluster.  Symlinks are probably fine as long as they link out to similarly shared NFS file-systems.  If your symlink in this scenario links into a local mount you are going to give yourself big headaches. If you're certain you will always stay on a single-node Bitbucket Server instance, then you do not need to worry about this.  

Note:  I've have never actually done what you are proposing, but I have used a symlink for $BITBUCKET_HOME/caches/, and it worked fine.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events