Always create top parent folder (bug?)

Questions about Cobian Reflector
Post Reply
Nanno
Posts: 5
Joined: 05 Feb 2023, 22:17

Always create top parent folder (bug?)

Post 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.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Always create top parent folder (bug?)

Post 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)
--
Luis Cobian
Cobian Backup's creator
Nanno
Posts: 5
Joined: 05 Feb 2023, 22:17

Re: Always create top parent folder (bug?)

Post 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.
Attachments
options.png
options.png (51.07 KiB) Viewed 1958 times
task.png
task.png (38.45 KiB) Viewed 1958 times
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Always create top parent folder (bug?)

Post 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.
--
Luis Cobian
Cobian Backup's creator
Nanno
Posts: 5
Joined: 05 Feb 2023, 22:17

Re: Always create top parent folder (bug?)

Post 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.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Always create top parent folder (bug?)

Post 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 (?)
--
Luis Cobian
Cobian Backup's creator
Nanno
Posts: 5
Joined: 05 Feb 2023, 22:17

Re: Always create top parent folder (bug?)

Post 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.
Attachments
cobian11.jpg
cobian11.jpg (51.49 KiB) Viewed 1923 times
cobian11b.jpg
cobian11b.jpg (60.1 KiB) Viewed 1923 times
cobian11c.jpg
cobian11c.jpg (61.23 KiB) Viewed 1923 times
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Always create top parent folder (bug?)

Post by cobian »

:OK
--
Luis Cobian
Cobian Backup's creator
Nanno
Posts: 5
Joined: 05 Feb 2023, 22:17

Re: Always create top parent folder (bug?)

Post 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.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Always create top parent folder (bug?)

Post by cobian »

:OK
--
Luis Cobian
Cobian Backup's creator
Post Reply