[Samba] rsync'ing samba shares

2013-02-13 Thread Gregory Sloop
I know this has come up a bit in the past, but consider this
situation:

Two Samba4 DC's - and I want to mirror the data shares to the
backup DC in case we lose the primary DC and it's file shares.

[A cheap, dirty, poor-mans semi-CTDB. How did you ever guess that Red
Green was helping me?!]

The easiest way is probably rsync'ing the data.

However, will that include all the ACL's and extra data associated
with the files. I understand that to a disk on part of the DC, it
might not. But on the second DC, all the relevant users, AD group etc
do all exist.

So, is using rsync in such a situation reasonable/workable, or should
we use some windows based utility - say robocopy to handle this?

TIA
-Greg

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] rsync'ing samba shares

2013-02-13 Thread Edward Ashley
Hi,
I have a slightly similar setup with a primary / slave samba server on
site, using DRBD for the data replication. And I nightly rsync the
directories to a third samba server offsite. I also then rsync that third
system with a backup server running ZFS on linux and then take a snapshot.
I would be using rsync with the a option or at least look into what the a
option implies. I would also be checking the permissions on the parent
directories, that caught me out once.
Thanks
Ned


On 13 February 2013 23:35, Gregory Sloop gr...@sloop.net wrote:

 I know this has come up a bit in the past, but consider this
 situation:

 Two Samba4 DC's - and I want to mirror the data shares to the
 backup DC in case we lose the primary DC and it's file shares.

 [A cheap, dirty, poor-mans semi-CTDB. How did you ever guess that Red
 Green was helping me?!]

 The easiest way is probably rsync'ing the data.

 However, will that include all the ACL's and extra data associated
 with the files. I understand that to a disk on part of the DC, it
 might not. But on the second DC, all the relevant users, AD group etc
 do all exist.

 So, is using rsync in such a situation reasonable/workable, or should
 we use some windows based utility - say robocopy to handle this?

 TIA
 -Greg

 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

Edward Ashley
Developer

e. n...@redmonkeysoftware.com
u. www.redmonkeysoftware.com
t. 0845 867 3849
f. 0845 867 4127

Red Monkey Software | Superior Software Solutions

Red Monkey Software Ltd, 24 The Layne, Elmer Sands, Bognor Regis, West Sussex. 
PO22 6JL
Registered in England and Wales no 5923420
Registered Office: 20 Springfield Road, Crawley, West Sussex, RH11 8AD
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] rsync'ing samba shares

2013-02-13 Thread Christian Rost
Hi Greg,

the answer to your question can be quite complex, depending on your needs and 
your setup. If we are sticking with file-syncing than you can use robocopy as 
well as rsync. It depends on the amount of data hat needs to be synced, how 
often you want to sync, how can the DCs reach each other, ...

If you link your DCs together via a separate sync-only network, I would prefer 
rsync. That way you do not interfere with the regular network. Anyway, syncing 
by rsync/ robocopy has the drawback that it is always lagging behind. 

If both machines are in the same network consider using a distributed 
filesystem/ block device that syncs the data between the nodes on the fly.

Cheers,

Christian



Gregory Sloop gr...@sloop.net schrieb:

I know this has come up a bit in the past, but consider this
situation:

Two Samba4 DC's - and I want to mirror the data shares to the
backup DC in case we lose the primary DC and it's file shares.

[A cheap, dirty, poor-mans semi-CTDB. How did you ever guess that Red
Green was helping me?!]

The easiest way is probably rsync'ing the data.

However, will that include all the ACL's and extra data associated
with the files. I understand that to a disk on part of the DC, it
might not. But on the second DC, all the relevant users, AD group etc
do all exist.

So, is using rsync in such a situation reasonable/workable, or should
we use some windows based utility - say robocopy to handle this?

TIA
-Greg

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Dipl.-Ing. Christian Rost [T.I.S.P.]
roCon - Informationstechnologie
Ulmenstraße 45

44534 Lünen

fon: +49 (0) 2306 910 658
fax: +49 (0) 2306 910 664
url: http://www.rocon-it.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] rsync'ing samba shares

2013-02-13 Thread Daniel Müller
Use glusterfs on a raid. It is just easy to setup. Real-time syncing between 
file shares HA. Block devices like drbd are limited to have only two nodes, 
glusterfs can have as many as you like.




---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im 
Auftrag von Christian Rost
Gesendet: Donnerstag, 14. Februar 2013 07:52
An: Greg Sloop; Gregory Sloop; samba@lists.samba.org
Betreff: Re: [Samba] rsync'ing samba shares

Hi Greg,

the answer to your question can be quite complex, depending on your needs and 
your setup. If we are sticking with file-syncing than you can use robocopy as 
well as rsync. It depends on the amount of data hat needs to be synced, how 
often you want to sync, how can the DCs reach each other, ...

If you link your DCs together via a separate sync-only network, I would prefer 
rsync. That way you do not interfere with the regular network. Anyway, syncing 
by rsync/ robocopy has the drawback that it is always lagging behind. 

If both machines are in the same network consider using a distributed 
filesystem/ block device that syncs the data between the nodes on the fly.

Cheers,

Christian



Gregory Sloop gr...@sloop.net schrieb:

I know this has come up a bit in the past, but consider this
situation:

Two Samba4 DC's - and I want to mirror the data shares to the 
backup DC in case we lose the primary DC and it's file shares.

[A cheap, dirty, poor-mans semi-CTDB. How did you ever guess that Red 
Green was helping me?!]

The easiest way is probably rsync'ing the data.

However, will that include all the ACL's and extra data associated with 
the files. I understand that to a disk on part of the DC, it might not. 
But on the second DC, all the relevant users, AD group etc do all 
exist.

So, is using rsync in such a situation reasonable/workable, or should 
we use some windows based utility - say robocopy to handle this?

TIA
-Greg

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Dipl.-Ing. Christian Rost [T.I.S.P.]
roCon - Informationstechnologie
Ulmenstraße 45

44534 Lünen

fon: +49 (0) 2306 910 658
fax: +49 (0) 2306 910 664
url: http://www.rocon-it.de
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba