Zálohování - Bacula: Porovnání verzí
(Založení článku) |
(Doplnění) |
||
Řádka 1: | Řádka 1: | ||
== Instalace klienta do MS Windows == | == Instalace klienta do MS Windows == | ||
+ | Klient je ke stažení na adrese http://sourceforge.net/project/showfiles.php?group_id=50727 | ||
[[Soubor:BaculaClient-1.PNG|right]] | [[Soubor:BaculaClient-1.PNG|right]] | ||
Řádka 19: | Řádka 20: | ||
FileDaemon { | FileDaemon { | ||
− | Name = | + | Name = velkej-fd |
FDport = 9102 | FDport = 9102 | ||
# Toto nefunguje | # Toto nefunguje | ||
Řádka 40: | Řádka 41: | ||
Client { | Client { | ||
− | Name = | + | Name = Velkej |
− | Address = 192.168. | + | Address = 192.168.0.51 |
FDPort = 9102 | FDPort = 9102 | ||
Catalog = MyCatalog | Catalog = MyCatalog | ||
Řádka 55: | Řádka 56: | ||
Name = "Windows-Backup" | Name = "Windows-Backup" | ||
Type = Backup | Type = Backup | ||
− | Client = | + | Client = Velkej |
FileSet = "Windows" | FileSet = "Windows" | ||
Schedule = "WeeklyCycle" | Schedule = "WeeklyCycle" |
Verze z 5. 3. 2009, 15:54
Instalace klienta do MS Windows
Klient je ke stažení na adrese http://sourceforge.net/project/showfiles.php?group_id=50727
Jméno klienta je obvykle názevpočítače-fd a musí být shodné se jménem v příslušné sekci Client.
Heslo musí souhlasit s tím, které je uvedeno v souboru /etc/bacula/bacula-dir.conf
v příslušné sekci Client.
Konfigurace klienta je uložena v souboru C:\Documents and Settings\All Users\Data aplikací\Bacula\bacula-fd.conf
, avšak v současné verzi 2.4.4 nemůže být v konfiguračním souboru v cestě k souborům použita diakritika. Je proto nutné přesměrovat pracovní adresář a adresář s PID souborem někam jinam, například:
FileDaemon { Name = velkej-fd FDport = 9102 # Toto nefunguje # WorkingDirectory = "C:/Documents and Settings/All Users/Data aplikací/Bacula/Work" # Pid Directory = "C:/Documents and Settings/All Users/Data aplikací/Bacula/Work" # Tohle uz funguje WorkingDirectory = "C:\\Documents and Settings\\All Users" Pid Directory = "C:\\Documents and Settings\\All Users" Maximum Concurrent Jobs = 2 } Director { Name = bacula-dir Password = "MilanTest" }
Konfigurace na serveru
Pro každého klienta je nutné založit novou sekci Client, přičemž Password se musí shodovat s tím, které je uvedeno v konfiguraci klienta (vyz výše).
Client { Name = Velkej Address = 192.168.0.51 FDPort = 9102 Catalog = MyCatalog Password = "TajnyHeslo" File Retention = 30 days Job Retention = 6 months AutoPrune = yes }
Jednotlivé Joby se pak pomocí jejich jména spouští z konzole nebo automaticky pomocí parametru Schedule. Job se odkazuje na sekci FileSet, která představuje seznam souborů pro zálohování:
Job { Name = "Windows-Backup" Type = Backup Client = Velkej FileSet = "Windows" Schedule = "WeeklyCycle" Level = Incremental Storage = File Messages = Standard Pool = Default Priority = 10 }
FileSet může vypadat třeba takto:
FileSet { Name = "Windows" Include { Options { Signature = SHA1 Compression = GZIP IgnoreCase = yes Exclude = yes # Exclude Mozilla-based programs' file caches WildDir = "c:/Documents and Settings/*/Application Data/*/Profiles/*/*/Cache" WildDir = "c:/Documents and Settings/*/Application Data/*/Profiles/*/*/Cache.Trash" WildDir = "c:/Documents and Settings/*/Application Data/*/Profiles/*/*/ImapMail" # Exclude user's registry files - they're always in use anyway. WildFile = "c:/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/usrclass.*" WildFile = "c:/Documents and Settings/*/ntuser.*" # Exclude directories full of lots and lots of useless little files WildDir = "c:/Documents and Settings/*/Cookies" WildDir = "c:/Documents and Settings/*/Recent" WildDir = "c:/Documents and Settings/*/Local Settings/History" WildDir = "c:/Documents and Settings/*/Local Settings/Temp" WildDir = "c:/Documents and Settings/*/Local Settings/Temporary Internet Files" # These are always open and unable to be backed up WildFile = "[A-Z]:/Documents and Settings/All Users/Application Data/Microsoft/Network/Downloader/qmgr[01].dat" } File = "c:/Documents and Settings" } Exclude { File = "c:/Documents and Settings/All Users" File = "c:/Documents and Settings/Default User" File = "c:/Documents and Settings/LocalService" File = "c:/Documents and Settings/NetworkService" } }