1. windows client
wget http://nchc.dl.sourceforge.net/sourceforge/bacula/winbacula-1.38.10.exe
2. windows client
notepad C:aculainacula-fd.conf
Director {
Name = lab100-dir
Password = "smocpassword"
}FileDaemon {
Name = media-fd
FDport = 9102WorkingDirectory = /bacula/working
Pid Directory = /bacula/working
}Messages {
Name = Standard
director = lab100-dir = all, !skipped
}
notepad c:windowssystem32driversetchosts
192.168.1.100 lab100
3. director server
vi /usr/local/bacula/etc/bacula-dir.conf
## [ media ]
Job {
Name = "bac-media"
Type = "Backup"
Level = Incremental
Client = "media-fd"
FileSet = "fileset-media"
Schedule = "WeeklyCycle"
Storage = "bac-file-media"
Messages = "Standard"
Pool = "Default"
Write Bootstrap = "/usr/local/bacula/var/bacula/working/media.bsr"
Priority = 12
}FileSet {
Name = "fileset-media"
Include {
Options {
compression=GZIP
signature = MD5
}
File = "C:/Inetpub"
}
}Client {
Name = "media-fd"
Address = "192.168.1.150"
FDPort = "9102"
Catalog = MyCatalog
Password = "smocpassword"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}Storage {
Name = bac-file-media
Address = lab100
SDPort = 9103
Password = "smocpassword"
Device = FileStorage
Media Type = File
}
## [ media ] END
備回 windows平台上,預設存放路徑 C:usrlocalacula mpacula-restores
把 windows上的東西備回到 linux平台上,會因 GZIP的因素失敗
留言