mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 05:30:07 -06:00
Add Time Machine via SMB support.
This commit is contained in:
@@ -40,6 +40,16 @@ Hide "dot" files:
|
||||
|
||||
> If set to 'No' then dot files will appear in folder lists the same as any other file.
|
||||
|
||||
Enhanced OS X interoperability:
|
||||
: <select name="enableFruit" size="1">
|
||||
<?=mk_option($var['enableFruit'], "no", "No");?>
|
||||
<?=mk_option($var['enableFruit'], "yes", "Yes");?>
|
||||
</select>
|
||||
|
||||
> When set to 'Yes' provides enhanced compatibility with Apple SMB clients, resulting, for example, in faster
|
||||
> Finder browsing, and ability to export Time Machine shares. This may cause some issues with Windows clients, however.
|
||||
> Please also refer to the [VFS_FRUIT MAN PAGE](https://www.mankier.com/8/vfs_fruit).
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($var['fsState']=="Started"):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
</form>
|
||||
|
||||
@@ -61,6 +61,7 @@ foreach ($rows as $row) echo $row;
|
||||
Share name:
|
||||
: <span class="big"><?=htmlspecialchars($name)?></span>
|
||||
|
||||
<?if (($name == 'flash')||($var['enableFruit']!='yes')):?>
|
||||
Export:
|
||||
: <select name="shareExport" size="1">
|
||||
<?=mk_option($sec[$name]['export'], "-", "No");?>
|
||||
@@ -71,16 +72,24 @@ Export:
|
||||
> This setting determines whether the share is visible and/or accessible. The 'Yes (hidden)' setting
|
||||
> will *hide* the share from *browsing* but is still accessible if you know the share name.
|
||||
|
||||
<?if ($name !== 'flash'):?>
|
||||
Enhanced OS X interoperability:
|
||||
: <select name="shareFruit" size="1">
|
||||
<?=mk_option($sec[$name]['fruit'], "no", "No");?>
|
||||
<?=mk_option($sec[$name]['fruit'], "yes", "Yes");?>
|
||||
<?else:;?>
|
||||
Export:
|
||||
: <select name="shareExport" size="1" onchange="checkShareSettingsSMB(this.form)">
|
||||
<?=mk_option($sec[$name]['export'], "-", "No");?>
|
||||
<?=mk_option($sec[$name]['export'], "e", "Yes");?>
|
||||
<?=mk_option($sec[$name]['export'], "eh", "Yes (hidden)");?>
|
||||
<?=mk_option($sec[$name]['export'], "et", "Yes/Time Machine");?>
|
||||
<?=mk_option($sec[$name]['export'], "eth", "Yes/Time Machine (hidden)");?>
|
||||
</select>
|
||||
|
||||
> When set to 'Yes' provides enhanced compatibility with Apple SMB clients, resulting, for example, in faster
|
||||
> Finder browsing. This may cause some issues with Windows clients, however. Please also refer to
|
||||
> the [VFS_FRUIT MAN PAGE](https://www.mankier.com/8/vfs_fruit).
|
||||
> This setting determines whether the share is visible and/or accessible. The 'Yes (hidden)' setting
|
||||
> will *hide* the share from *browsing* but is still accessible if you know the share name.
|
||||
|
||||
Time Machine volume size limit:
|
||||
: <input type="text" name="shareVolsizelimit" maxlen="20" value="<?=$sec[$name]['volsizelimit']?>"> MB
|
||||
|
||||
> This limits the reported volume size, preventing Time Machine from using the entire real disk space
|
||||
> for backup. For example, setting this value to "1024" would limit the reported disk space to 1GB.
|
||||
|
||||
<?endif;?>
|
||||
Security:
|
||||
@@ -203,6 +212,7 @@ foreach ($rows as $row) echo $row;
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
checkShareSettingsSMB(document.smb_edit);
|
||||
initDropdownSMB(false);
|
||||
<?if ($tabbed):?>
|
||||
$('#tab'+$('input[name$="tabs"]').length).bind({click:function(){initDropdownSMB(true);}});
|
||||
@@ -213,6 +223,9 @@ $(function() {
|
||||
$('#smb2').dropdownchecklist('disable');
|
||||
<?endif;?>
|
||||
});
|
||||
function checkShareSettingsSMB(form) {
|
||||
form.shareVolsizelimit.disabled = (form.shareExport.value.indexOf("et") == -1);
|
||||
}
|
||||
function initDropdownSMB(reset) {
|
||||
if (reset) {
|
||||
$('#smb1').dropdownchecklist('destroy');
|
||||
|
||||
Reference in New Issue
Block a user