Couldn't create the destination directory

Questions about Cobian Backup 11 (Gravity)
Post Reply
Oldman
Posts: 1
Joined: 22 Nov 2020, 16:26

Couldn't create the destination directory

Post by Oldman »

Continue to get "Couldn't create the destination directory" error. What do I do to correct this?
User avatar
cobian
Site Admin
Posts: 168
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Couldn't create the destination directory

Post by cobian »

It's 99% of the times a problem with permissions. Is the program running as a service (under LocalSystem) and is the destination a network path?
--
Luis Cobian
Cobian Backup's creator
ivelde
Posts: 2
Joined: 28 Mar 2021, 19:07

Re: Couldn't create the destination directory

Post by ivelde »

After using Cobian backup for a long time I encounter the issue of "Couldn't create the destination directory" just now when copying to the NAS which I used before successfully so I don't suspect a rights issue in my situation, especially because the error message is that the "file, folder or volume name syntax is not correct". However if I look at the path that the program is trying to use: "\\SynDisk1\Backup M\Mail 2021-03-28 16;54;45 (Full)" I suspect the semicolons that are used in the path name. Can I setup Cobian in a way that it doesn't insert the semicolons?
User avatar
Paltus
Posts: 19
Joined: 18 Jan 2021, 08:05
Location: Russia

Re: Couldn't create the destination directory

Post by Paltus »

cobian wrote: 23 Nov 2020, 22:35 It's 99% of the times a problem with permissions.
I agree
ivelde wrote: 28 Mar 2021, 19:32 I suspect the semicolons that are used in the path name.
It is unlikely

ivelde wrote: 28 Mar 2021, 19:32Can I setup Cobian in a way that it doesn't insert the semicolons?
Here
Attachments
100.jpg
100.jpg (81.14 KiB) Viewed 3696 times
101.jpg
101.jpg (104.31 KiB) Viewed 3696 times
ivelde
Posts: 2
Joined: 28 Mar 2021, 19:07

Re: Couldn't create the destination directory

Post by ivelde »

You are right, the semicolon was not the issue. My Cobian runs as a service and I have users defined on my Synology NAS. Anybody who knows how to set-up security in a way that the Cobian service can write to the NAS?
User avatar
Paltus
Posts: 19
Joined: 18 Jan 2021, 08:05
Location: Russia

Re: Couldn't create the destination directory

Post by Paltus »

ivelde wrote: 29 Mar 2021, 20:15 You are right, the semicolon was not the issue. My Cobian runs as a service and I have users defined on my Synology NAS. Anybody who knows how to set-up security in a way that the Cobian service can write to the NAS?
1. Create a user on the NAS.
2. Create Share
3. Give user rights to Share with read / write access
4. If you use password access, and not access from AD, create a bat-file with the following content:
net use L: \\ 193.121.161.14 \ Backup /user:193.121.161.14\backup 987654321
I think you can figure out what and how.
Those. connect the network drive L c Share Backup (\\ 193.121.161.14 \ Backup)
user: 193.121.161.14 \ backup - created NAS user
987654321 - password.
Place this file in the list of tasks. And voila.
Something like that.
Attachments
202.jpg
202.jpg (70.64 KiB) Viewed 3665 times
201.jpg
201.jpg (75.99 KiB) Viewed 3665 times
200.jpg
200.jpg (66.64 KiB) Viewed 3665 times
User avatar
cobian
Site Admin
Posts: 168
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Couldn't create the destination directory

Post by cobian »

NAS are a little difficult when running as a services because the have its own user which is often cached when your Windows user logs in but not when using the program as a service. Paltus solution is similar to the one I use.
--
Luis Cobian
Cobian Backup's creator
dtarantov
Posts: 1
Joined: 31 May 2021, 15:33

Re: Couldn't create the destination directory

Post by dtarantov »

Paltus wrote: 30 Mar 2021, 05:35
ivelde wrote: 29 Mar 2021, 20:15 You are right, the semicolon was not the issue. My Cobian runs as a service and I have users defined on my Synology NAS. Anybody who knows how to set-up security in a way that the Cobian service can write to the NAS?
1. Create a user on the NAS.
2. Create Share
3. Give user rights to Share with read / write access
4. If you use password access, and not access from AD, create a bat-file with the following content:
net use L: \\ 193.121.161.14 \ Backup /user:193.121.161.14\backup 987654321
I think you can figure out what and how.
Those. connect the network drive L c Share Backup (\\ 193.121.161.14 \ Backup)
user: 193.121.161.14 \ backup - created NAS user
987654321 - password.
Place this file in the list of tasks. And voila.
Something like that.
This way is no secure.
Lysergic
Posts: 2
Joined: 10 Sep 2021, 16:28

Re: Couldn't create the destination directory

Post by Lysergic »

Hello everyone!
Just stumbled with this same problem here and this is how I could solve it.
We have a Windows domain controller and the NAS is connected to it, so I created one backup user, set it to administrator group and set the permissions to that user in the NAS share.
After that go to Cobian, edit the task and navigate to advanced tab, enable impersonation and put the backup user credentials.
Screenshot below :)
Attachments
Screenshot at Sep 10 11-33-39.png
Screenshot at Sep 10 11-33-39.png (35.74 KiB) Viewed 61 times
Post Reply