Problem with stash backup client - cant create a parent dir

hi team at Atlassian,

i was tryingto backup my stash data via backup client and now im stuck.
While trying to call 'java -jar stash-backup-client.jat' this is what i get

|-ERROR in ch.qos.logback.core.FileAppender[log] - Failed to create

parent directories for [C:\Atlassian\stash-backup-1.0.0-beta-11\"\log\atlassian

-sbc-2013-08-30-1432.log]

14:32:16,050 |-ERROR in ch.qos.logback.core.FileAppender[log] - openFile("\log/a

tlassian-sbc-2013-08-30-1432.log,true) call failed. java.io.FileNotFoundExceptio

n: "\log\atlassian-sbc-2013-08-30-1432.log (The filename, directory name, or vol

ume label syntax is incorrect)


I am running prompt as an administrator, I also put the backupclient.jar outside the Program Files (same with Stash home directory). I also tried creating log directory myself.

Any ideas?

take care

Szymon

1 answer

0 vote
Bryan Turner Atlassian Team Sep 01, 2013

Szymon,

What value do you have in backup-config.properties for "backup.home"? It looks like the value there has either a double quote or two single quotes, based on the error message shown. That's not a valid path character. No paths you enter on Windows should require quotes. For path separators, you should either use forward slashes (the simplest approach, even on Windows), or you must double-up your backslashes. So either:

C:\\Atlassian\\stash-backup-1.0.0-beta-11

or

C:/Atlassian/stash-backup-1.0.0-beta-11

Either of those values should be fine. If you are passing the "backup.home" value on the command line, using "-Dbackup.home=", you should just use forward slashes, like "-Dbackup.home=C:/Atlassian/stash-backup-1.0.0-beta-11" (Without the quotes; I'm only including them here to set apart the exact values to enter).

Bryan Turner
Atlassian Stash

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

86 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you