Bluehost.com Web Hosting $6.95

[Samba] shadow_copy for homes share

This is a discussion on [Samba] shadow_copy for homes share within the Samba forums, part of the Networking and Network Related category; I have successfully setup shadow_copy for normal shares on our samba test server. However, I cannot get it working for ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-26-2008
Cory Coager
 
Posts: n/a
Default [Samba] shadow_copy for homes share

I have successfully setup shadow_copy for normal shares on our samba
test server. However, I cannot get it working for the homes share
because of its uniqueness.

Here is the homes share:

[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
browseable = no
fstype = XFS 1.2
vfs object = shadow_copy
shadow_copy: path = /samba/homes/
shadow_copy: subpath = %D+%U

The users authenticate against Active Directory. The path to the
snapshots is located at /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS Using the
subpath each individual files should be located at
/samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS/DOMAIN+user but the previous
versions tab is missing on this share. What am I doing wrong?


~Cory Coager



------------------------------------------------------------------------
The information contained in this communication is intended
only for the use of the recipient(s) named above. It may
contain information that is privileged or confidential, and
may be protected by State and/or Federal Regulations. If
the reader of this message is not the intended recipient,
you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received
this communication in error, please return it to the sender
immediately and delete the original message and any copy
of it from your computer system. If you have any questions
concerning this message, please contact the sender.
------------------------------------------------------------------------

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

Reply With Quote
  #2 (permalink)  
Old 08-26-2008
Damien Dye
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

I don't think that will work because homes is dynamic I believe that the
snapshots have to be mounted at the root of the share and homes has the
root of the share at /home/username you have the snapshots mounted at /home

hope this helps

Damien

Cory Coager wrote:
> I have successfully setup shadow_copy for normal shares on our samba
> test server. However, I cannot get it working for the homes share
> because of its uniqueness.
>
> Here is the homes share:
>
> [homes]
> comment = Home Directories
> read only = No
> create mask = 0700
> directory mask = 0700
> browseable = no
> fstype = XFS 1.2
> vfs object = shadow_copy
> shadow_copy: path = /samba/homes/
> shadow_copy: subpath = %D+%U
>
> The users authenticate against Active Directory. The path to the
> snapshots is located at /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS Using
> the subpath each individual files should be located at
> /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS/DOMAIN+user but the previous
> versions tab is missing on this share. What am I doing wrong?
>
>
> ~Cory Coager
>
>
>
> ------------------------------------------------------------------------
> The information contained in this communication is intended
> only for the use of the recipient(s) named above. It may
> contain information that is privileged or confidential, and
> may be protected by State and/or Federal Regulations. If
> the reader of this message is not the intended recipient,
> you are hereby notified that any dissemination,
> distribution, or copying of this communication, or any of
> its contents, is strictly prohibited. If you have received
> this communication in error, please return it to the sender
> immediately and delete the original message and any copy
> of it from your computer system. If you have any questions
> concerning this message, please contact the sender.
> ------------------------------------------------------------------------
>


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

Reply With Quote
  #3 (permalink)  
Old 08-26-2008
Cory Coager
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

So its not possible to use variables for the 'subpath' option?

Damien Dye wrote:
> I don't think that will work because homes is dynamic I believe that
> the snapshots have to be mounted at the root of the share and homes
> has the root of the share at /home/username you have the snapshots
> mounted at /home
>
> hope this helps
>
> Damien
>
> Cory Coager wrote:
>> I have successfully setup shadow_copy for normal shares on our samba
>> test server. However, I cannot get it working for the homes share
>> because of its uniqueness.
>>
>> Here is the homes share:
>>
>> [homes]
>> comment = Home Directories
>> read only = No
>> create mask = 0700
>> directory mask = 0700
>> browseable = no
>> fstype = XFS 1.2
>> vfs object = shadow_copy
>> shadow_copy: path = /samba/homes/
>> shadow_copy: subpath = %D+%U
>>
>> The users authenticate against Active Directory. The path to the
>> snapshots is located at /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS Using
>> the subpath each individual files should be located at
>> /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS/DOMAIN+user but the previous
>> versions tab is missing on this share. What am I doing wrong?
>>
>>
>> ~Cory Coager
>>
>>
>>
>> ------------------------------------------------------------------------
>> The information contained in this communication is intended
>> only for the use of the recipient(s) named above. It may
>> contain information that is privileged or confidential, and
>> may be protected by State and/or Federal Regulations. If
>> the reader of this message is not the intended recipient,
>> you are hereby notified that any dissemination,
>> distribution, or copying of this communication, or any of
>> its contents, is strictly prohibited. If you have received
>> this communication in error, please return it to the sender
>> immediately and delete the original message and any copy
>> of it from your computer system. If you have any questions
>> concerning this message, please contact the sender.
>> ------------------------------------------------------------------------
>>

>




------------------------------------------------------------------------
The information contained in this communication is intended
only for the use of the recipient(s) named above. It may
contain information that is privileged or confidential, and
may be protected by State and/or Federal Regulations. If
the reader of this message is not the intended recipient,
you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received
this communication in error, please return it to the sender
immediately and delete the original message and any copy
of it from your computer system. If you have any questions
concerning this message, please contact the sender.
------------------------------------------------------------------------

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

Reply With Quote
  #4 (permalink)  
Old 08-26-2008
Scott Lovenberg
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

Cory Coager wrote:
> So its not possible to use variables for the 'subpath' option?
>
> Damien Dye wrote:
>> I don't think that will work because homes is dynamic I believe that
>> the snapshots have to be mounted at the root of the share and homes
>> has the root of the share at /home/username you have the snapshots
>> mounted at /home
>>
>> hope this helps
>>
>> Damien
>>
>> Cory Coager wrote:
>>> I have successfully setup shadow_copy for normal shares on our samba
>>> test server. However, I cannot get it working for the homes share
>>> because of its uniqueness.
>>>
>>> Here is the homes share:
>>>
>>> [homes]
>>> comment = Home Directories
>>> read only = No
>>> create mask = 0700
>>> directory mask = 0700
>>> browseable = no
>>> fstype = XFS 1.2
>>> vfs object = shadow_copy
>>> shadow_copy: path = /samba/homes/
>>> shadow_copy: subpath = %D+%U
>>>
>>> The users authenticate against Active Directory. The path to the
>>> snapshots is located at /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS Using
>>> the subpath each individual files should be located at
>>> /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS/DOMAIN+user but the previous
>>> versions tab is missing on this share. What am I doing wrong?
>>>
>>>
>>> ~Cory Coager
>>>

Hrm... could you symlink it to a known, non-variable path? I have
absolutely no idea if that would work, but I figured I'd throw it out there.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #5 (permalink)  
Old 08-26-2008
Cory Coager
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

Symlinks do work however, this isn't feasible when you have hundreds of
users.

Scott Lovenberg wrote:
> Hrm... could you symlink it to a known, non-variable path? I have
> absolutely no idea if that would work, but I figured I'd throw it out
> there.




------------------------------------------------------------------------
The information contained in this communication is intended
only for the use of the recipient(s) named above. It may
contain information that is privileged or confidential, and
may be protected by State and/or Federal Regulations. If
the reader of this message is not the intended recipient,
you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received
this communication in error, please return it to the sender
immediately and delete the original message and any copy
of it from your computer system. If you have any questions
concerning this message, please contact the sender.
------------------------------------------------------------------------

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

Reply With Quote
  #6 (permalink)  
Old 08-27-2008
Aaron Browne
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

On Tue, Aug 26, 2008 at 10:29 PM, Cory Coager <ccoager@davisvision.com>wrote:

> I have successfully setup shadow_copy for normal shares on our samba test
> server. However, I cannot get it working for the homes share because of its
> uniqueness.
>
> Here is the homes share:
>
> [homes]
> comment = Home Directories
> read only = No
> create mask = 0700
> directory mask = 0700
> browseable = no
> fstype = XFS 1.2
> vfs object = shadow_copy
> shadow_copy: path = /samba/homes/
> shadow_copy: subpath = %D+%U
>
> The users authenticate against Active Directory. The path to the snapshots
> is located at /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS Using the subpath each
> individual files should be located at
> /samba/homes/@GMT-YYYY.MM.DD-HH.MM.SS/DOMAIN+user but the previous versions
> tab is missing on this share. What am I doing wrong?
>
>
>

Take a look on this page.. http://www.edplese.com/samba-with-zfs.html

The 3-paths.patch contains a description of exactly what you are trying to
do..

>From patch :


+ Below is example usage for a single large filesystem mounted
+ at /home that contains all of the home directories. The
+ snapshots reside in /snapshots/home.
+
+ [homes]
+ path = /home/%U
+ public = no
+ writable = yes
+ printable = no
+ vfs object = shadow_copy
+ shadow_copy: path = /snapshots/home
+ shadow_copy: subpath = %U
+ shadow_copy: format = $Y.$m.$d-$H.$M.$S
+ shadow_copy: sort = desc
+ shadow_copy: localtime = yes
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #7 (permalink)  
Old 08-27-2008
Cory Coager
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

I'm guessing this patch isn't part of binaries distributed through SLES
which is why it isn't working for me. Thanks for the info.

Aaron Browne wrote:
> Take a look on this page.. http://www.edplese.com/samba-with-zfs.html
> The 3-paths.patch contains a description of exactly what you are trying to
> do..
>
> >From patch :

>
> + Below is example usage for a single large filesystem mounted
> + at /home that contains all of the home directories. The
> + snapshots reside in /snapshots/home.
> +
> + [homes]
> + path = /home/%U
> + public = no
> + writable = yes
> + printable = no
> + vfs object = shadow_copy
> + shadow_copy: path = /snapshots/home
> + shadow_copy: subpath = %U
> + shadow_copy: format = $Y.$m.$d-$H.$M.$S
> + shadow_copy: sort = desc
> + shadow_copy: localtime = yes
>




------------------------------------------------------------------------
The information contained in this communication is intended
only for the use of the recipient(s) named above. It may
contain information that is privileged or confidential, and
may be protected by State and/or Federal Regulations. If
the reader of this message is not the intended recipient,
you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received
this communication in error, please return it to the sender
immediately and delete the original message and any copy
of it from your computer system. If you have any questions
concerning this message, please contact the sender.
------------------------------------------------------------------------

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

Reply With Quote
  #8 (permalink)  
Old 08-28-2008
Aaron Browne
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

On Wed, Aug 27, 2008 at 11:09 PM, Cory Coager <ccoager@davisvision.com>wrote:

> I'm guessing this patch isn't part of binaries distributed through SLES
> which is why it isn't working for me. Thanks for the info.
>
>

Maybe you can go about it a different way and offer a "recovery" drive to
the users. Rather than using "homes" for the shadow_copy, which is posing
problems for you, setup another share called "recover" that points to the
snapshot area. Users can then to browse into their home directory via the
"recover" share and recover/view their old files.

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

Reply With Quote
  #9 (permalink)  
Old 08-28-2008
Cory Coager
 
Posts: n/a
Default Re: [Samba] shadow_copy for homes share

Aaron Browne wrote:
> Maybe you can go about it a different way and offer a "recovery" drive to
> the users. Rather than using "homes" for the shadow_copy, which is posing
> problems for you, setup another share called "recover" that points to the
> snapshot area. Users can then to browse into their home directory via the
> "recover" share and recover/view their old files.
>
> Cheers,
> Aaron
>

Thats a good idea. We already have this in place for Administrators to
recover files for end users.

I ended up making this work by creating a script to create and delete
symlinks in each users folder.




------------------------------------------------------------------------
The information contained in this communication is intended
only for the use of the recipient(s) named above. It may
contain information that is privileged or confidential, and
may be protected by State and/or Federal Regulations. If
the reader of this message is not the intended recipient,
you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received
this communication in error, please return it to the sender
immediately and delete the original message and any copy
of it from your computer system. If you have any questions
concerning this message, please contact the sender.
------------------------------------------------------------------------

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0