Zálohování - Bacula: Porovnání verzí
(Doplnění) |
m (Fix) |
||
(Není zobrazena jedna mezilehlá verze od stejného uživatele.) | |||
Řádka 108: | Řádka 108: | ||
== Reference == | == Reference == | ||
<references /> | <references /> | ||
+ | |||
+ | [[Kategorie:Síťové služby v Linuxu]] |
Aktuální verze z 6. 4. 2009, 20:14
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" }
Klient se standardně instaluje v MS Windows jako služba (tzv. service, tj. jako démon[1]), takže je jí potřeba po opravě konfiguračního souboru znovu spustit:
Menu Start – Ovládací panely – Nástroje pro správu – Služby – Bacula File Service –> Spustit
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" } }