Luis Miguel R. wrote:
> El Thursday, 07 February del 2008 a las 06:32:59PM, Paul Slootman escribió:
>> On Thu 07 Feb 2008, Jarkko Ypäjä wrote:
>>
>>> The the dedicated backup server I will insert a bank(to the master.conf) 
>>> for all the servers that need to backupped such as:
>>>
>>> master.conf
>>>
>>> bank
>>>     /server1
>>>     /server2
>> You can define just one bank, and put the servers below that.
>> (you need a : after bank!)
>> I use:
>>
>> bank:
>>     /data
>>
>> and then have /data/server1/etc, /data/server1/home, etc
>> and /data/server2/etc, /data/server2/var-www, etc
>>
>> You also need an entry for each if you want to use dirvish-runall:
>>
>> Runall:
>>     server1/etc                 22:00
>>     server1/home                22:00
>>     server2/etc                 22:00
>>     server2/var-www             22:00
>>     ...
> 
> Imagine you have to backup some windows/linux servers to a dedicated
> dirvish server, you will use an rsyncd daemon on each server, BUT you
> only need to backup some directories per server, ejem: 
> * On windows-server-1 c:\shared_documents and c:\account_software
> * On linux-server-1 \etc and \home
> 
> So you need one vault per backed directory, as the number of backed
> directories grows the vault number grows and you finish with many vaults
> per server and getting crazy configuring and managing them.
> 
> The ideal solution (for me) will be on vault per server, (or one vault for
> all servers) but dirvish doesnt support them (the exclude nightmare isnt 
> a good solution), and I think rsync cant backup multiple remote directories 
> on one command over the rsync protocol.
> 
> So my solution is having a separate rsync script that will do the remote
> backup and then let dirvish create the data snapshots once the rsync
> script finished.
> 
> This is a rsync script (stripped down version) I use for this purpose:
> 
> config.cfg:
> RSYNC_PASSWORD="rsyncpassword"
> RSYNCD_SERVER_IP="192.168.0.3"
> USER="rsyncuser"
> MOD="server"
> #backupX=(local_dir remote_dir)
> backup1=(/home/backup/winserver1 shared_documents)
> backup2=(/home/backup/winserver1 account_software)
> backup3=(/home/backup/linuxserver1 etc)
> backup4=(/home/backup/linuxserver1 home)
> 
> on rsyncscript.sh:
> RSYNC="rsync -az -O -v --timeout=600 --stats --delete --chmod=ugo=rwx "
> for name in backup1 backup2 .....; do
>       eval $RSYNC [EMAIL PROTECTED]::$MODULO/${$name[0]} ${$name[1]}
> done;
> 
> So I can have one vault per server (/home/backup/winserver1) or even one
> big vault for all servers (/home/backup).
> 
> Regards.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Dirvish mailing list
> [email protected]
> http://www.dirvish.org/mailman/listinfo/dirvish
> 
Hmmm,
seems like I am doing it the other way round (kind of..).

I have dirvish backup all my machines (in fact I use a script that pings 
the machines and then tells dirvish to back it up if switched on). So I 
have one vault per server, in some cases two. The "normal" dirvish 
expire rules administer these vaults.

Then I have a second server (NSLU2 SLug running Debian), that is not 
always on. When switched on it rsyncs the whole Dirvish vault to its 
local disk. Keeping all hard links intact etc. That rsync also uses the 
--delete parameter, to remove old dirs that expired on the dirvish machine.

Cheers Brian

















_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to