ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Денис Ягофаров" <denyago@rambler.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] Bacula и regex | wild в наборе файлов
Date: Mon, 18 Jan 2010 16:55:11 +0200
Message-ID: <4B54764F.3050601@rambler.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 3082 bytes --]

Доброго времени суток.

Пробую при помощи Bacula 3.0.3 забрать бекапы репозиториев (они сделаны 
отдельным скриптом). Все файлы имеют вид SVN*gz.
Не получается скопировать только их - жадная Бакула копирует всё в 
целевой папке. Создаётся впечатление, что RegEx и Wild не работают на 
включение файлов в бекап.

Попытка 1:

# This is the backup of the SVN
FileSet {
   Name = "SVNDump"
   Include {
     Options {
         signature = MD5
         RegEx = "^/tmp/SVN.*gz$"
         }
     File = "/tmp"
    }
}

Проверяю:

estimate job=BackupSVN listing client=storeFd001

Connecting to Client storeFd001 at store.itc.lan:9102

-rw-r--r-- 1 root root 47 2010-01-18 12:22:57 /tmp/w_test

-rw-r--r-- 1 root root 0 2010-01-18 12:21:56 /tmp/SVNtest.inc.16-31.gz

-rw-r--r-- 1 root root 0 2010-01-18 12:21:44 /tmp/SVNtest.full.gz

-rw------- 1 root root 0 2010-01-17 18:32:30 /tmp/session_mm_phpini0.sem

drwx-----T 2 cacheman man 40 2010-01-18 04:02:05 /tmp/.private/cacheman
...

drwxrwxrwt 7 root root 240 2010-01-18 15:32:13 /tmp

2000 OK estimate files=15 bytes=33,633

Хм.... если добавить exclude = yes , регулярное выражение начинает работать:

Connecting to Client storeFd001 at store.itc.lan:9102

-rw-r--r-- 1 root root 47 2010-01-18 12:22:57 /tmp/w_test

-rw------- 1 root root 0 2010-01-17 18:32:30 /tmp/session_mm_phpini0.sem
drwx-----T 2 cacheman man 40 2010-01-18 04:02:05 /tmp/.private/cacheman

...

drwxrwxrwt 7 root root 240 2010-01-18 15:32:13 /tmp

2000 OK estimate files=13 bytes=33,633


Попытка 2:

# This is the backup of the SVN
FileSet {
   Name = "SVNDump"
   Include {
     Options {
         signature = MD5
         Wild = "/tmp/SVN*gz"
         }
     File = "/tmp"
    }
}

Проверяю:

estimate job=BackupSVN listing client=storeFd001

Connecting to Client storeFd001 at store.itc.lan:9102

-rw-r--r-- 1 root root 47 2010-01-18 12:22:57 /tmp/w_test

-rw-r--r-- 1 root root 0 2010-01-18 12:21:56 /tmp/SVNtest.inc.16-31.gz

-rw-r--r-- 1 root root 0 2010-01-18 12:21:44 /tmp/SVNtest.full.gz

-rw------- 1 root root 0 2010-01-17 18:32:30 /tmp/session_mm_phpini0.sem

drwx-----T 2 cacheman man 40 2010-01-18 04:02:05 /tmp/.private/cacheman

...

drwxrwxrwt 7 root root 240 2010-01-18 15:32:13 /tmp 2000 OK estimate 
files=15 bytes=33,633


Хм.... если добавить exclude = yes , wild-выражение начинает работать:


estimate job=BackupSVN listing client=storeFd001
Connecting to Client storeFd001 at store.itc.lan:9102
-rw-r--r-- 1 root root 47 2010-01-18 12:22:57 /tmp/w_test
-rw------- 1 root root 0 2010-01-17 18:32:30 /tmp/session_mm_phpini0.sem
drwx-----T 2 cacheman man 40 2010-01-18 04:02:05 /tmp/.private/cacheman
...
drwxrwxrwt 7 root root 240 2010-01-18 15:32:13 /tmp
2000 OK estimate files=13 bytes=33,633


[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 385 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
	xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


             reply	other threads:[~2010-01-18 14:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 14:55 Денис Ягофаров [this message]
2010-01-18 17:10 ` Rinat Shigapov
2010-01-21 22:11   ` Di

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B54764F.3050601@rambler.ru \
    --to=denyago@rambler.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git