Thanks, guys. This is working, except "ignore case". Did I miss something?
Here is my test scenario, which I would expect to exclude
YETANOTHERTEST/ and noBackup/ (because of using <ignore case = yes>) also:
FileSet {
Name = "backnix-2017"
Include {
Options {
wilddir = "/*/nobackup"
wilddir = "/*/TO_BE_ARCHIEVED"
wilddir = "/*/yetanothertest"
wildfile = "*.tmp"
Exclude = yes
}
Options {
signature = MD5
compression = GZIP
noatime = yes
onefs = yes
ignore case = yes
}
#File = /etc
#File = /home
File = /root
#File = /opt # Bacula
#File = /var/log
#File = /srv
}
Exclude {
#/root/nobackup
}
}
I have this structure in my file system:
[root@backnix-2017 ~]# ll
insgesamt 7276
-rw-------. 1 root root 1766 8. Jan 2017 anaconda-ks.cfg
-rw-r--r--. 1 root root 3312236 8. Jan 2017 bacula-7.4.4.tar.gz
-rw-r--r--. 1 root root 4115337 10. Okt 15:56 bacula-9.2.1.tar.gz
drwxr-xr-x. 2 root root 4096 14. Jan 13:52 noBackup
-rw-r--r--. 1 root root 0 14. Jan 13:51 testtmp2.tmp
-rw-r--r--. 1 root root 5 14. Jan 13:48 testtmp.tmp
drwxr-xr-x. 2 root root 4096 15. Jan 17:46 yetanothertest
drwxr-xr-x. 2 root root 4096 15. Jan 17:46 YETANOTHERTEST
[root@backnix-2017 bin]# ./bconsole
Connecting to Director backnix-2017:9101
1000 OK: 103 backnix05-dir Version: 9.2.1 (12 August 2018)
Enter a period to cancel a command.
*
*reload
*
*estimate listing level=Full job=backnix-2017
Using Catalog "IcCatalog"
Connecting to Client backnix-2017-fd at 127.0.0.1:9102
-rw------- 1 root root 1766 2017-01-08 14:46:30
/root/anaconda-ks.cfg
-rw------- 1 root root 26289 2019-01-14 20:12:27
/root/.bash_history
-rw-r--r-- 1 root root 349 2018-12-19 18:24:00
/root/.ssh/known_hosts
drwx------ 2 root root 4096 2018-10-10 18:53:38 /root/.ssh
-rw------- 1 root root 11717 2019-01-15 17:46:23
/root/.viminfo
-rw-r--r-- 1 root root 3312236 2017-01-08 16:39:26
/root/bacula-7.4.4.tar.gz
-rw------- 1 root root 82 2018-12-19 18:22:54
/root/.lesshst
-rw------- 1 root root 1024 2018-10-10 21:40:58 /root/.rnd
-rw-r--r-- 1 root root 0 2019-01-14 13:52:42
/root/noBackup/noBackup.test
drwxr-xr-x 2 root root 4096 2019-01-14 13:52:42
/root/noBackup
-rw-r--r-- 1 root root 129 2017-01-08 14:44:12
/root/.tcshrc
-rw-r--r-- 1 root root 4115337 2018-10-10 15:56:06
/root/bacula-9.2.1.tar.gz
-rw-r--r-- 1 root root 18 2017-01-08 14:44:12
/root/.bash_logout
-rw-r--r-- 1 root root 8 2019-01-15 17:46:23
/root/YETANOTHERTEST/test2.txt
drwxr-xr-x 2 root root 4096 2019-01-15 17:46:23
/root/YETANOTHERTEST
-rw-r--r-- 1 root root 100 2017-01-08 14:44:12
/root/.cshrc
-rw------- 1 root root 431 2018-12-19 18:56:30
/root/.mysql_history
-rw-r--r-- 1 root root 176 2017-01-08 14:44:12
/root/.bashrc
-rw-r--r-- 1 root root 176 2017-01-08 14:44:12
/root/.bash_profile
dr-xr-x--- 6 root root 4096 2019-01-15 17:46:23 /root
2000 OK estimate files=20 bytes=7,469,838
*
Thanks,
Stefanie
Am 15.01.19 um 10:51 schrieb Wanderlei Huttel:
Hello Stefanie
I like to include another option only to deal the exclude files
FileSet {
Name = "testnix-2017"
Include {
Options {
wilddir = "/*/nobackup"
wildfile = "*.tmp"
Exclude = yes
}
Options {
signature = MD5
compression = GZIP
noatime = yes
onefs = yes
ignore case = yes
}
#File = /etc
#File = /home
File = /root
#File = /opt # Bacula
#File = /var/log
#File = /srv
}
Exclude {
#File = "/root/nobackup"
}
}
Before excluding:
*estimate listing level=Full job=Backup_Servidor_Bacula
Using Catalog "MyCatalog"
Connecting to Client srv_bacula-fd at localhost:9102
-rw-r--r-- 1 root root 0 2018-12-05 10:58:28
/root/root
-rwxrwxrwx 1 root root 260 2019-01-15 07:42:22
/root/nobackup/opa.sh
drwxr-xr-x 2 root root 4096 2019-01-15 07:42:22
/root/nobackup
-rw-r--r-- 1 root root 955 2019-01-11 15:47:24
/root/egroupware-epl-install.log
-rw-r--r-- 1 root root 0 2019-01-15 07:44:36
/root/test.tmp
-rwxr-xr-x 1 root root 5828 2017-09-26 10:15:54
/root/_send_telegram.sh
-rwxrwxrwx 1 root root 1049 2017-05-23 16:53:02
/root/catalog.sh
-rwxrwxrwx 1 root root 280 2017-05-23 15:01:06
/root/while_com_end.sh
-rw-r--r-- 1 root root 25449 2018-12-05 11:00:16
/root/teste.txt
-rwxrwxrwx 1 root root 428 2017-05-23 21:37:23
/root/run.sh
drwx------ 14 root root 4096 2019-01-15 07:47:06
/root
2000 OK estimate files=11 bytes=34,249
After excluding:
*estimate listing level=Full job=Backup_Servidor_Bacula
Using Catalog "MyCatalog"
Connecting to Client srv_bacula-fd at localhost:9102
-rw-r--r-- 1 root root 0 2018-12-05 10:58:28
/root/root
-rw-r--r-- 1 root root 955 2019-01-11 15:47:24
/root/egroupware-epl-install.log
-rwxr-xr-x 1 root root 5828 2017-09-26 10:15:54
/root/_send_telegram.sh
-rwxrwxrwx 1 root root 1049 2017-05-23 16:53:02
/root/catalog.sh
-rwxrwxrwx 1 root root 280 2017-05-23 15:01:06
/root/while_com_end.sh
-rw-r--r-- 1 root root 25449 2018-12-05 11:00:16
/root/teste.txt
-rwxrwxrwx 1 root root 428 2017-05-23 21:37:23
/root/run.sh
drwx------ 14 root root 4096 2019-01-15 07:47:46
/root
2000 OK estimate files=8 bytes=33,989
Best regards
*Wanderlei Hüttel*
http://www.bacula.com.br <http://www.bacula.com.br/>
Em ter, 15 de jan de 2019 às 07:28, Stefanie Leisestreichler
<stefanie.leisestreich...@peter-speer.de
<mailto:stefanie.leisestreich...@peter-speer.de>> escreveu:
Hi.
I have this FileSet Definition. Why is exclude not working and folder
nobackup is backuped?
For test purposes I have created a folder /root/nobackup
Bacula version is 9.2.0.
Thanks.
Stefanie
FileSet {
Name = "testnix-2017"
Include {
Options {
signature = MD5
compression = GZIP
noatime = yes
onefs = yes
ignore case = yes
Exclude = yes
wilddir = "nobackup"
wildfile = "*.tmp"
}
#File = /etc
#File = /home
File = /root
#File = /opt # Bacula
#File = /var/log
#File = /srv
}
Exclude {
}
}
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users