`
dannyhz
  • 浏览: 395095 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

用powershell 来做svn server的控制,可惜svn server是需要从VisualSVN Server 3.4有效

 
阅读更多
https://www.visualsvn.com/support/topic/00088/


This reference provides descriptions and examples for all VisualSVN Server PowerShell cmdlets. Cmdlets are listed in alphabetical order based on the verb at the beginning of the cmdlet. 


Cmdlet Description 

Add-SvnAccessRule Adds a new rule that controls access to Subversion repositories. 
Add-SvnRepositoryHook Adds a new repository hook to Subversion repositories. 
Backup-SvnRepository Performs a backup of the Subversion repository. 
Convert-SvnRepository Converts a regular Subversion repository to a distributed VDFS format and vice versa. 
Disable-SvnJob Disables a background job. 
Enable-SvnJob Enables a previously disabled background job. 
Get-SvnAccessRule Retrieves a list of rules that control access to Subversion repositories. 
Get-SvnJob Retrieves a list of configured background jobs. 
Get-SvnRepository Retrieves a list of Subversion repositories. 
Get-SvnRepositoryHook Retrieves a list of the repository hooks configured in VisualSVN Server. 
Get-SvnRepositoryItem Retrieves a list of files and folders for the specified path in a Subversion repository. 
Get-SvnRepositoryReplication Gets the replication settings for a master VDFS repository. 
Get-SvnServerConfiguration Returns the configuration settings of a VisualSVN Server instance. 
Import-SvnRepository Imports a repository or a repository dump from the specified path. 
Measure-SvnRepository Measures the disk space occupied by Subversion repositories. 
New-SvnRepository Creates a Subversion repository. 
New-SvnRepositoryItem Creates a folder in a Subversion repository. 
Remove-SvnAccessRule Deletes one or more rules that control access to Subversion repositories. 
Remove-SvnRepository Deletes a Subversion repository. 
Remove-SvnRepositoryHook Deletes one or more repository hooks. 
Remove-SvnRepositoryItem Deletes a file or a folder in a Subversion repository. 
Rename-SvnRepository Renames a Subversion repository. 
Restore-SvnRepository Restores a Subversion repository from backup. 
Resume-SvnRepository Resumes a suspended (read-only) VDFS repository. 
Select-SvnAccessRule Returns an effective list of access rules for the specified path in a Subversion repository. 
Set-SvnAccessRule Modifies an existing access rule that controls access to Subversion repositories. 
Set-SvnRepository Modifies settings for a Subversion repository. 
Set-SvnRepositoryHook Modifies the content of existing repository hooks. 
Set-SvnRepositoryReplication Modifies replication settings for a master VDFS repository. 
Set-SvnServerConfiguration Modifies the VisualSVN Server configuration settings. 
Start-SvnJob Starts a background job. 
Stop-SvnJob Stops a background job. 
Suspend-SvnRepository Makes a VDFS repository read-only temporarily. 
Switch-SvnRepository Switches replication role for a VDFS repository. 
Sync-SvnRepository Forces a slave VDFS repository to replicate data from the master repository. 
Test-SvnRepository Verifies the integrity of data stored in a Subversion repository. 

Add-SvnAccessRule

Available since VisualSVN Server 3.4. 

Adds a new access rule to Subversion repositories. Access rules can be configured globally for all repositories or for a specific path in a particular repository. 


Note 


Note
Add-SvnAccessRule and other cmdlets that work with access rules are currently available only if VisualSVN Server is configured to use Windows Authentication. See KB39: Understanding VisualSVN Server Authentication options for further details. 
Example 1: add a global read/write access rule for a Devs user group
PS C:\> Add-SvnAccessRule -Global -AccountName contoso\Devs -Access ReadWrite

Example 2: add a read-only access for the trunk folder in the MyRepo repository
PS C:\> Add-SvnAccessRule MyRepo -Path /trunk -AccountName contoso\Devs -Access ReadOnly

Example 3: add a global read-only access for the BUILTIN\Users account using its SID string
PS C:\> Add-SvnAccessRule -Global -AccountId S-1-5-32-545 -Access ReadOnly



分享到:
评论

相关推荐

    VisualSVN Server 3.5.4 破解补丁

    VisualSVN Server allows you to easily install and manage a fully-functional Subversion server on the Windows platform. Thanks to its robustness, unbeatable usability and unique enterprise-grade ...

    WindowsServer 2003 x86 x64 PowerShell 1.0

    WindowsServer 2003 x86 PowerShell 1.0 WindowsServer 2003 x64 PowerShell 1.0 WindowsServer2003-KB926139-v2-x86-ENU WindowsServer2003.WindowsXP-KB926139-v2-x64-ENU

    Exchange_Server_2016_PowerShell_Cookbook_4th

    Exchange Server 2016是微软公司推出的一...总体来说,本书是一本针对Exchange Server 2016管理者的实用指南,通过具体的PowerShell脚本案例,帮助读者快速有效地解决行政管理中的各种问题,提升IT系统的性能和安全性。

    PowerShellServer 2016 installation.zip

    - 配置:安装完成后,需要在服务器上配置防火墙规则,允许PowerShell Server使用的端口通过,并设置必要的权限和访问控制策略。 - 验证:最后,测试从远程机器连接到PowerShell Server,确保一切正常运行。 4. ...

    SMO+PowerShell 实现SQLServer数据库的备份与还原

    标题 "SMO+PowerShell 实现SQLServer数据库的备份与还原" 涉及到的是在SQL Server环境中,使用SQL Server Management Objects (SMO) 和 PowerShell脚本来自动化数据库的备份和恢复过程。这是一种高效且灵活的方法,...

    Windows Server 2003的32位PowerShell2.0下载

    Windows Server 2003的32位PowerShell2.0下载

    PowerShell Server 2016.zip

    在Windows Server 2016中,我们可以通过PowerShell来实现SSH服务,以便能够使用命令行界面与服务器进行交互,而无需开放对传统telnet或不安全的远程桌面协议(RDP)的访问。 首先,要安装SSH服务,我们需要确保...

    Wrox - Professional Windows PowerShell for Exchange Server 2007 SP1 (Jan 2008)

    《精通Windows PowerShell用于Exchange Server 2007 SP1》是一本专为IT专业人士准备的指南,详细介绍了如何使用PowerShell这一强大的命令行脚本语言来管理Exchange Server 2007 SP1。这本书深入浅出地讲解了...

    精通windows server 2008 命令行与powershell电子书PDF版(第一卷)

    《精通Windows Server 2008命令行与PowerShell》的内容简介回到顶部↑ 本书全面地介绍了windows server 2008命令行、powershell和脚本的使用,包括文件和文件夹的管理、磁盘管理、系统管理、活动目录管理、网络管理...

    SQL Server with Powershell

    2. **性能监控脚本**:编写一个 PowerShell 脚本来持续监控 SQL Server 的 CPU 使用率,并在超过阈值时发送警告邮件。 ```powershell $sqlInstance = "localhost" $threshold = 90 $emailTo = "admin@example....

    SQL Server 2014 with PowerShell v5 Cookbook

    - **安装 SMO**:本书提供了一个简单的步骤来指导用户如何在系统上安装 SMO,这是一个非常重要的工具集,用于通过 PowerShell 脚本来管理和控制 SQL Server 实例。 - **步骤**:确保已安装 SQL Server 2014;然后...

    从PowerShell中访问SQL Server数据(一).pdf

    本文主要介绍了如何从PowerShell中访问SQL Server数据,使用ADO.NET对象模型来获取数据。本文共分两部分,第一部分介绍如何使用ADO.NET来获取SQL Server数据,第二部分将介绍如何修改这些数据。 ADO.NET对象模型是...

    用Windows PowerShell管理Sql Server 2008 PDF版

    《用Windows PowerShell管理Sql Server 2008》一书深入探讨了如何利用Windows PowerShell这一强大的脚本语言来管理和自动化Microsoft SQL Server 2008的运维任务。本书由Ananthakumar Muthusamy与Yan Pan共同撰写,...

    使用Powershell备份SVN存储库

    在IT管理领域,保持版本控制系统的数据安全至关重要,特别是对于使用Subversion(SVN)作为版本控制工具的团队。Subversion存储库包含了项目的历史版本,因此定期备份是防止数据丢失的关键步骤。本篇文章将深入探讨...

    Windows PowerShell 1.0

    总的来说,Windows PowerShell 1.0对于SQL Server 2008的安装和管理起到了至关重要的作用,它提供了更为高效和灵活的工具,使系统管理员能够以更少的时间和精力完成更复杂的任务。因此,在安装SQL Server 2008之前,...

    Windows Server 2016 Automation With PowerShell Cookbook ( PDFDrive.com ).pdf

    通过阅读本书,读者不仅能够掌握如何使用 PowerShell 来简化 Windows Server 2016 的管理任务,还能够学到一系列最佳实践和技术细节,这些都将有助于他们在日常工作中更高效地解决问题。此外,本书还涵盖了最新的 ...

    精通windows server 2008 命令行与powershell 电子书PDF单文件完整版

    本书全面地介绍了Windows Server 2008命令行、PowerShell和脚本的使用,包括文件和文件夹的管理、磁盘管理、系统管理、活动目录管理、网络管理、网络服务管理、系统诊断、故障恢复、系统安全、批处理和配置文件,...

Global site tag (gtag.js) - Google Analytics