User Tools

Site Tools


public:documents_and_guides:v8:obm:backup-source-filter:appendix-d

Appendix D: Filtering in Windows shared folder on Linux/ FreeBSD OS

1. Filter that starts with uppercase letter C on a windows shared folder.

Filter Name = Filter that starts with uppercase letter C

Matching Pattern = C

Filter Mode = Include Them

Exclude all others = True

Matching Type = Simple Comparison | Starts With

Apply To = File            

Directory = /mnt/backupfiles

As a result, these are the total files and directories that have been successfully backed up:

Total New Files = 6

1. CloudBackup_001.txt

2. CloudBackup_002.txt

3. CloudBackup_003.txt

4. Configuration_Guide2016.docx

5. Configuration_Guide2017.docx

6. Configuration_Guide2018.docx

Total New Directories = 5

1. /

2. /mnt

3. /root

4. /usr

5. /usr/local

Explanation:

All the files that starts with uppercase letter C have been successfully backed up including the directories but excluding all the other files that did not match the filter. This example is the same as the one on the simple comparison – starts with filter, the only difference is that the source destination is a Windows shared folder.

This filter only applies to a specific folder which is mnt, and since the File, under the “Apply to” field, has been set to true, only the files have been backed up even if there are available folders that matched the set criteria.

Here are the reports using the AhsayCBS web console and CLI:

Backup Report from AhsayCBS Web Console

Backup Logs from Command Line Interface (CLI)

#cd /root/.obm/log/1553761650657/Backup

#cat 2019-03-28-16-29-38.log

[2019/03/28 16:29:56] [info] [-] Start [ Linux 3.10.0-514.10.2.el7.x86_64 (centos7), AhsayOBM v8.1.0.95 ]

[2019/03/28 16:29:56] [cbs] [1553761710628] start,"Start [ Linux 3.10.0-514.10.2.el7.x86_64 (centos7), AhsayOBM v8.1.0.95 ]",0,0,0,,,

[2019/03/28 16:29:56] [info] [-] Saving encrypted backup set encryption keys to server...

[2019/03/28 16:29:56] [cbs] [-] info,Saving encrypted backup set encryption keys to server...,0,0,0,,,

[2019/03/28 16:29:57] [info] [1553761710628] Start Backup ... [In-File Delta: Differential]

[2019/03/28 16:29:57] [info] [1553761710628] Using Temporary Directory /root/tmp/1553761650657/OBS@1553761710628

[2019/03/28 16:29:57] [cbs] [1553761710628] info,Using Temporary Directory /root/tmp/1553761650657/OBS@1553761710628,0,0,0,,,

[2019/03/28 16:29:57] [info] [-] Start running pre-commands

[2019/03/28 16:29:57] [cbs] [-] info,Start running pre-commands,0,0,0,,,

[2019/03/28 16:29:57] [info] [-] Finished running pre-commands

[2019/03/28 16:29:57] [cbs] [-] info,Finished running pre-commands,0,0,0,,,

[2019/03/28 16:29:57] [info] [1553761710628] Downloading server file list...

[2019/03/28 16:29:58] [info] [1553761710628] Downloading server file list... Completed

[2019/03/28 16:29:59] [info] [1553761710628] Reading backup source from hard disk...

[2019/03/28 16:29:59] [info] [1553761710628] Reading backup source from hard disk... Completed

[2019/03/28 16:29:59] [info] [1553761710628] [New Directory]... /

[2019/03/28 16:29:59] [cbs] [1553761710628] new,/,260,260,1552974191000,,,D

[2019/03/28 16:29:59] [info] [1553761710628] [New Directory]... /mnt

[2019/03/28 16:29:59] [cbs] [1553761710628] new,/mnt,4096,4096,1553761058000,,,D

[2019/03/28 16:29:59] [info] [1553761710628] [New Directory]... /root

[2019/03/28 16:29:59] [cbs] [1553761710628] new,/root,4096,4096,1553589172000,,,D

[2019/03/28 16:29:59] [info] [1553761710628] [New Directory]... /usr

[2019/03/28 16:29:59] [cbs] [1553761710628] new,/usr,155,155,1487122181000,,,D

[2019/03/28 16:29:59] [info] [1553761710628] [New Directory]... /usr/local

[2019/03/28 16:29:59] [cbs] [1553761710628] new,/usr/local,142,142,1553491132000,,,D

[2019/03/28 16:30:00] [info] [1553761710628] [New File]... 100% of "/mnt/CloudBackup_002.txt"

[2019/03/28 16:30:00] [info] [1553761710628] [New File]... 100% of "/mnt/CloudBackup_001.txt"

[2019/03/28 16:30:00] [cbs] [1553761710628] new,/mnt/CloudBackup_002.txt,208,8219,1553760909000,,,F

[2019/03/28 16:30:00] [cbs] [1553761710628] new,/mnt/CloudBackup_001.txt,208,8219,1553760909000,,,F

[2019/03/28 16:30:00] [info] [1553761710628] [New File]... 100% of "/mnt/CloudBackup_003.txt"

[2019/03/28 16:30:00] [cbs] [1553761710628] new,/mnt/CloudBackup_003.txt,208,8219,1553760909000,,,F

[2019/03/28 16:30:00] [info] [1553761710628] [New File]... 100% of "/mnt/Configuration_Guide2016.docx"

[2019/03/28 16:30:00] [cbs] [1553761710628] new,/mnt/Configuration_Guide2016.docx,400,16440,1553761012000,,,F

[2019/03/28 16:30:00] [info] [1553761710628] [New File]... 100% of "/mnt/Configuration_Guide2017.docx"

[2019/03/28 16:30:00] [info] [1553761710628] [New File]... 100% of "/mnt/Configuration_Guide2018.docx"

[2019/03/28 16:30:00] [cbs] [1553761710628] new,/mnt/Configuration_Guide2017.docx,400,16440,1553761012000,,,F

[2019/03/28 16:30:00] [cbs] [1553761710628] new,/mnt/Configuration_Guide2018.docx,400,16440,1553761012000,,,F

[2019/03/28 16:30:01] [info] [1553761710628] Total New Files = 6

[2019/03/28 16:30:01] [info] [1553761710628] Total New Directories = 5

[2019/03/28 16:30:01] [info] [1553761710628] Total New Links = 0

[2019/03/28 16:30:01] [info] [1553761710628] Total Updated Files = 0

[2019/03/28 16:30:01] [info] [1553761710628] Total Deleted Files = 0

[2019/03/28 16:30:01] [info] [1553761710628] Total Deleted Directories = 0

[2019/03/28 16:30:01] [info] [1553761710628] Total Deleted Links = 0

[2019/03/28 16:30:01] [info] [1553761710628] Total Moved Files = 0

[2019/03/28 16:30:01] [info] [1553761710628] Saving encrypted backup file index to 1553761650657/blocks at destination AhsayCBS...

[2019/03/28 16:30:02] [info] [1553761710628] Saving encrypted backup file index to 1553761650657/blocks/2019-03-28-16-29-38 at destination AhsayCBS...

[2019/03/28 16:30:02] [info] [-] Start running post-commands

[2019/03/28 16:30:02] [cbs] [-] info,Start running post-commands,0,0,0,,,

[2019/03/28 16:30:02] [info] [-] Finished running post-commands

[2019/03/28 16:30:02] [cbs] [-] info,Finished running post-commands,0,0,0,,,

[2019/03/28 16:30:05] [info] [1553761710628] Deleting temporary file /root/tmp/1553761650657/OBS@1553761710628

[2019/03/28 16:30:05] [info] [1553761710628] Backup Completed Successfully

[2019/03/28 16:30:05] [cbs] [1553761710628] end,BS_STOP_SUCCESS,0,0,0,,,

2. Filter that contains the word Backup on a Windows shared folder.

Filter Name = Filter that contains the word Backup Regular Expression

Matching Pattern = ^.*Backup.*$

Filter Mode = Include Them

Exclude all others = True

Matching Type = Simple Comparison | Starts With

Apply To = File

Directory = /mnt/backupfiles

As a result, these are the total files and directories that have been successfully backed up:

Total New Files = 3

1. CloudBackup_001.txt

2. CloudBackup_002.txt

3. CloudBackup_003.txt

Total New Directories = 5

1. /

2. /mnt

3. /root

4. /usr

5. /usr/local

Explanation:

All the files that contains the word version, whether it is located at the beginning, middle, or end of the file name, have been successfully backed up including the directories but excluding all the other files that did not match the filter.

Looking closely, unlike in the Appendix A using simple comparison, we’re using the Regular expression (UNIX-style) with pattern ^.*Backup.*$. This filter only applies to a specific folder which is mnt, and since the File, under the “Apply to” field, has been set to true, only the files have been backed up even if there are available folders that matched the set criteria.

This example is the same as the one on the regular expression – contains filter, the only difference is that the source destination is a Windows shared folder.

Here are the reports using the AhsayCBS web console and CLI:

Backup Report from AhsayCBS Web Console

Backup Logs from Command Line Interface (CLI)

#cd /root/.obm/log/1553761787740/Backup

#cat 2019-03-28-16-36-59.log

[2019/03/28 16:37:18] [info] [-] Start [ Linux 3.10.0-514.10.2.el7.x86_64 (centos7), AhsayOBM v8.1.0.95 ]

[2019/03/28 16:37:18] [cbs] [1553762165503] start,"Start [ Linux 3.10.0-514.10.2.el7.x86_64 (centos7), AhsayOBM v8.1.0.95 ]",0,0,0,,,

[2019/03/28 16:37:18] [info] [-] Saving encrypted backup set encryption keys to server...

[2019/03/28 16:37:18] [cbs] [-] info,Saving encrypted backup set encryption keys to server...,0,0,0,,,

[2019/03/28 16:37:19] [info] [1553762165503] Start Backup ... [In-File Delta: Differential]

[2019/03/28 16:37:19] [info] [1553762165503] Using Temporary Directory /root/tmp/1553761787740/OBS@1553762165503

[2019/03/28 16:37:19] [cbs] [1553762165503] info,Using Temporary Directory /root/tmp/1553761787740/OBS@1553762165503,0,0,0,,,

[2019/03/28 16:37:19] [info] [-] Start running pre-commands

[2019/03/28 16:37:19] [cbs] [-] info,Start running pre-commands,0,0,0,,,

[2019/03/28 16:37:19] [info] [-] Finished running pre-commands

[2019/03/28 16:37:19] [cbs] [-] info,Finished running pre-commands,0,0,0,,,

[2019/03/28 16:37:19] [info] [1553762165503] Downloading server file list...

[2019/03/28 16:37:20] [info] [1553762165503] Downloading server file list... Completed

[2019/03/28 16:37:21] [info] [1553762165503] Reading backup source from hard disk...

[2019/03/28 16:37:21] [info] [1553762165503] Reading backup source from hard disk... Completed

[2019/03/28 16:37:21] [info] [1553762165503] [New Directory]... /

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/,260,260,1552974191000,,,D

[2019/03/28 16:37:21] [info] [1553762165503] [New Directory]... /mnt

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/mnt,4096,4096,1553761058000,,,D

[2019/03/28 16:37:21] [info] [1553762165503] [New Directory]... /usr

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/usr,155,155,1487122181000,,,D

[2019/03/28 16:37:21] [info] [1553762165503] [New Directory]... /root

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/root,4096,4096,1553589172000,,,D

[2019/03/28 16:37:21] [info] [1553762165503] [New Directory]... /usr/local

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/usr/local,142,142,1553491132000,,,D

[2019/03/28 16:37:21] [info] [1553762165503] [New File]... 100% of "/mnt/CloudBackup_002.txt"

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/mnt/CloudBackup_002.txt,208,8219,1553760909000,,,F

[2019/03/28 16:37:21] [info] [1553762165503] [New File]... 100% of "/mnt/CloudBackup_001.txt"

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/mnt/CloudBackup_001.txt,208,8219,1553760909000,,,F

[2019/03/28 16:37:21] [info] [1553762165503] [New File]... 100% of "/mnt/CloudBackup_003.txt"

[2019/03/28 16:37:21] [cbs] [1553762165503] new,/mnt/CloudBackup_003.txt,208,8219,1553760909000,,,F

[2019/03/28 16:37:22] [info] [1553762165503] Total New Files = 3

[2019/03/28 16:37:22] [info] [1553762165503] Total New Directories = 5

[2019/03/28 16:37:22] [info] [1553762165503] Total New Links = 0

[2019/03/28 16:37:22] [info] [1553762165503] Total Updated Files = 0

[2019/03/28 16:37:22] [info] [1553762165503] Total Deleted Files = 0

[2019/03/28 16:37:22] [info] [1553762165503] Total Deleted Directories = 0

[2019/03/28 16:37:22] [info] [1553762165503] Total Deleted Links = 0

[2019/03/28 16:37:22] [info] [1553762165503] Total Moved Files = 0

[2019/03/28 16:37:23] [info] [1553762165503] Saving encrypted backup file index to 1553761787740/blocks at destination AhsayCBS...

[2019/03/28 16:37:23] [info] [1553762165503] Saving encrypted backup file index to 1553761787740/blocks/2019-03-28-16-36-59 at destination AhsayCBS...

[2019/03/28 16:37:24] [info] [-] Start running post-commands

[2019/03/28 16:37:24] [cbs] [-] info,Start running post-commands,0,0,0,,,

[2019/03/28 16:37:24] [info] [-] Finished running post-commands

[2019/03/28 16:37:24] [cbs] [-] info,Finished running post-commands,0,0,0,,,

[2019/03/28 16:37:27] [info] [1553762165503] Deleting temporary file /root/tmp/1553761787740/OBS@1553762165503

[2019/03/28 16:37:27] [info] [1553762165503] Backup Completed Successfully

[2019/03/28 16:37:27] [cbs] [1553762165503] end,BS_STOP_SUCCESS,0,0,0,,,
public/documents_and_guides/v8/obm/backup-source-filter/appendix-d.txt · Last modified: 2020/04/29 13:32 by ronnie.chan

Page Tools