Regular Expression Multiple File Extension Error

Questions about Cobian Reflector
Post Reply
Naren
Posts: 3
Joined: 14 May 2022, 11:23

Regular Expression Multiple File Extension Error

Post by Naren »

I have written regular expression in the 'Exclude files Filter' as given in the example to exclude file extension other than jpg, jpeg and png
Regular Expression: ^.*\.(?!mp4$|jpeg$|png$)[^.]+$
Regular Expression: ^.*\.(?!txt$)[^.]+$ (It is working properly)

When I am running the task i am getting the below error:

Code: Select all

ERR 2022-05-14 14:42:49 An unexpected error occurred: Illegal characters: [|] in path.
Parameter name: path
ERR 2022-05-14 14:42:49 Source: AlphaFS  Details:    at Alphaleonis.Win32.Filesystem.Path.CheckInvalidPathChars(String path, Boolean checkAdditional, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.ApplyFullPathOptions(String path, GetFullPathOptions options)
   at Alphaleonis.Win32.Filesystem.Path.GetRegularPathCore(String path, GetFullPathOptions options, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.GetPathRoot(String path, Boolean checkInvalidPathChars)
   at Cobian.Reflector.Engine.VSCClient.GetFileOrDirectoryCopy(String fd)
   at Cobian.Reflector.Engine.CopyComponent.checkVSC()
   at Cobian.Reflector.Engine.CopyComponent.backupAction()
   at Cobian.Reflector.Engine.BackupComponent.Backup()
   at Cobian.Reflector.Engine.TaskBackupExecutor.startBackup(BackupTask subTask, String backupId, DateTime backupTime, Boolean lastDestination)
   at Cobian.Reflector.Engine.TaskBackupExecutor.Process()
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Regular Expression Multiple File Extension Error

Post by cobian »

Interesting... cannot reproduce this one. Could you please copy/task your task here os zip and sens your list?
--
Luis Cobian
Cobian Backup's creator
Naren
Posts: 3
Joined: 14 May 2022, 11:23

Re: Regular Expression Multiple File Extension Error

Post by Naren »

I am getting this error all the times in different machines. I have attached the settings, filter, Logs and properties file. I am not getting what you are asking me to send.

Code: Select all

    2022-05-16 14:36:47 Welcome to Cobian Reflector!
    2022-05-16 14:36:47 Program version: 1.0.0
     
    2022-05-16 14:36:47 Loading the task list "C:\Program Files\Cobian Reflector\Lists\MainList.lst".
    2022-05-16 15:08:37 The list "MainList.lst" has been successfully saved.
    2022-05-16 15:08:48 Backing up some selected tasks.
     
    2022-05-16 15:08:49 A backup has started...
    2022-05-16 15:08:50 Calculating the number of files. This could take a while...
     
    2022-05-16 15:08:50 Backing up the task "Backup"
    2022-05-16 15:08:50 Applying the parameters to the task "Backup" (if any).
    2022-05-16 15:08:50 Requesting the creation of a Volume Shadow Copy image for the source...
    2022-05-16 15:09:10 The Volume Shadow Copy image has been successfully created.
    2022-05-16 15:09:10 Starting the copy. The user running the task is: Sansar
    2022-05-16 15:09:10 The destination directory "D:\rkd-copy\Images" has been successfully created.
ERR 2022-05-16 15:09:10 An unexpected error occurred: Illegal characters: [|] in path.
Parameter name: path
ERR 2022-05-16 15:09:10 Source: AlphaFS  Details:    at Alphaleonis.Win32.Filesystem.Path.CheckInvalidPathChars(String path, Boolean checkAdditional, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.ApplyFullPathOptions(String path, GetFullPathOptions options)
   at Alphaleonis.Win32.Filesystem.Path.GetRegularPathCore(String path, GetFullPathOptions options, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.GetPathRoot(String path, Boolean checkInvalidPathChars)
   at Cobian.Reflector.Engine.VSCClient.GetFileOrDirectoryCopy(String fd)
   at Cobian.Reflector.Engine.CopyComponent.checkVSC()
   at Cobian.Reflector.Engine.CopyComponent.backupAction()
   at Cobian.Reflector.Engine.BackupComponent.Backup()
   at Cobian.Reflector.Engine.TaskBackupExecutor.startBackup(BackupTask subTask, String backupId, DateTime backupTime, Boolean lastDestination)
   at Cobian.Reflector.Engine.TaskBackupExecutor.Process()
     
    2022-05-16 15:09:10 ** Backup for the task "Backup" has ended **
    2022-05-16 15:09:10 ** Processed files: 0. Backed up files: 0. Created folders: 0. Backup size: 0 bytes. **
    2022-05-16 15:09:10 ** Number of errors: 2. Time elapsed: 0 hours, 0 minutes, 20 seconds. **
     
    2022-05-16 15:09:10 Deleting the Volume Shadow Copy image...
    2022-05-16 15:09:10 The Volume Shadow Copy image has been successfully deleted.
     
    2022-05-16 15:09:10 The backup has ended. There are errors. Consult the log file.
     
Attachments
Task Properties
Task Properties
Properties.png (48.84 KiB) Viewed 2220 times
Task Exclude Filter
Task Exclude Filter
Filter.png (50.49 KiB) Viewed 2220 times
Task Settings
Task Settings
Task_Settings.png (81.6 KiB) Viewed 2220 times
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Regular Expression Multiple File Extension Error

Post by cobian »

Thank you! Will make some tests
--
Luis Cobian
Cobian Backup's creator
Naren
Posts: 3
Joined: 14 May 2022, 11:23

Re: Regular Expression Multiple File Extension Error

Post by Naren »

Any update on this?
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Regular Expression Multiple File Extension Error

Post by cobian »

I think the problem is in the | so I would split this expression into three to avoid this character.
--
Luis Cobian
Cobian Backup's creator
Post Reply