Page 1 of 1

Always create top parent folder (bug?)

Posted: 05 Feb 2023, 22:37
by Nanno
Hi Cobian,

Thank you for creating this refreshed Cobian Reflector.

I am using Cobian Reflector 2.3.6.

If I set ON the option "General > Create new separated backups", then at "Advanced > Always create top parent folder" is grayed (sometimes ON, sometimes OFF), that is strange.


Moving forward to what seems a bug...
A backup with such settings:

Task name:
MyBackupForTesting

General > Create new separated backups ON
Backup type: full backup

Files > Source:
c:\myfiles\subdirectory

Dynamics >
Full copies to keep: 10

Archive >
Compression: Global Monolithic archive
Method: 7Zip

Advanced:
Use absolute paths ON
Always create top parent folder: GREYED

Files > Destination:
R:\backup



Expected result:
R:\backup\MyBackupForTesting.7z (with the full path inside the 7zip file)

Real result:
R:\backup\c\myfiles\subdirectory\MyBackupForTesting.7z (with the full path inside the 7zip file)


That seems a bug for me.

Re: Always create top parent folder (bug?)

Posted: 05 Feb 2023, 23:18
by cobian
If you don't want the full path inside the archive uncheck Options-Archive-Absolute paths even in monolithic archives. So the "Absolute path" is actually a property of the task destination, not of the files in the archive (which is optional)

Re: Always create top parent folder (bug?)

Posted: 05 Feb 2023, 23:42
by Nanno
cobian wrote: 05 Feb 2023, 23:18 If you don't want the full path inside the archive uncheck Options-Archive-Absolute paths even in monolithic archives. So the "Absolute path" is actually a property of the task destination, not of the files in the archive (which is optional)
Maybe here is where the problem is...
If I uncheck Task "Advanced > Use absolute path", then the absolute path is not used at all, not in the path where the 7zip file is created and not inside the 7zip file, and that happens even if is checked at "Options > Archive > Absolute path even in monolithic archives".

You can confirm it is properly set at attached files.

Re: Always create top parent folder (bug?)

Posted: 06 Feb 2023, 00:20
by cobian
Exactly. Use absolute paths EVEN in the archives means that when the option is checked (and it must be checked) then the absolute paths will also be used in the archive.

Re: Always create top parent folder (bug?)

Posted: 06 Feb 2023, 01:57
by Nanno
cobian wrote: 06 Feb 2023, 00:20 Exactly. Use absolute paths EVEN in the archives means that when the option is checked (and it must be checked) then the absolute paths will also be used in the archive.
That is a behavior different the one at the old Cobian Backup 11.

Re: Always create top parent folder (bug?)

Posted: 06 Feb 2023, 14:46
by cobian
Perhaps. Don't remember exactly but if I recall it correctly, the option to add absolute paths to the archives didn't exist in 11 (?)

Re: Always create top parent folder (bug?)

Posted: 06 Feb 2023, 19:56
by Nanno
cobian wrote: 06 Feb 2023, 14:46 Perhaps. Don't remember exactly but if I recall it correctly, the option to add absolute paths to the archives didn't exist in 11 (?)
I just run a test with Cobian Backup 11 to be sure about the behavior.

In Cobian Backup 11, under "Tools > Options" there is no option related to absolute path.

The absolute path option exists under the "Task" and it has two distinct behaviors:

1. If under "Task > Archive > Compression" is set "7zip compression", then the full path is used inside the 7zip file only and the 7zip file is created at the chosen "File > Destination" directory.

2. If under "Task > Archive > Compression" is set "no compression", then the full path is recreated at the chosen "File > Destination" directory (and, obviously, full path is not created inside the 7zip file because no 7zip file is created!)


I think the Cobian Backup 11 behavior is the ideal because do not make much sense have the full path inside and outside the 7zip file. In fact, recreating a lot of directories may mess with the backup location, especially if under "dynamics" is set to keep multiple backups and, over the time, the directory tree of the source change.


I hope in the next Reflector version you can consider to reinstall the old behavior for full path.

Re: Always create top parent folder (bug?)

Posted: 06 Feb 2023, 21:48
by cobian
:OK

Re: Always create top parent folder (bug?)

Posted: 13 Jul 2023, 17:52
by Nanno
I just tested version 2.4.0.
The problem still is there.
Hope you will have time to work on it in a near future.

Re: Always create top parent folder (bug?)

Posted: 14 Jul 2023, 14:38
by cobian
:OK