Archive for July, 2018


  • If a file is deleted in source, remove it from destination as well.
  • If a file is deleted form destination, do not remove from source.
  • if a file is already in source and destination do not do anything
  • if a file is on source but not destination, copy to destination
robocopy "\\source" "destination" /r:60 /w:5 /PURGE /MIR /MT:64

r:60 – retry 60 times

w:5 wait 5 seconds between retries

/PURGE: delete from destination if file is not in source

/MIR MIRror a directory tree

/Z : copy files in restartable mode

If we use /Z (restartable mode) the transfer bandwidth is about 4 to 6Mbps.

If  we take off the /Z switch, it goes between 80-120Mbs

and we need to add /MT:64

/MT[:n] :: Do multi-threaded copies with n threads (default 8).

This way the “file in use” error should be eliminated since Robocopy will have enough time between the scheduled run times to copy even the largest files ~6GB


Bamboo is a continuous integration (CI) server that can be used to automate the release management for a software application, creating a continuous delivery pipeline.

In this post we’ll enable users to authenticate to Bamboo using their Active Directory Credentials

Creating service account

We need account for searching AD (domain user account)




Create AD groups: one for Admin, second for user access

Edit 1.png

Edit configuration file (Bambo home\xml-data\configuration\atlassian-user-custom.xml


<!– LDAP repository –>
<ldap key=”ldapRepository” name=”Active Directory LDAP Repository” cache=”true”>
[HOSTNAME], the hostname to your LDAP, (i.e.:
[DISPLAY-NAME], i.e.: Sample User. A
[PASSWORD], password to authenticate “Sample User. A”
in <security…> we are going to authenticate our LDAP configuration against a user in our Active Directory
whereas, in this example we will be using “Service Account BAMBOO LDAP. A” as user
<securityPrincipal>CN=Service Account BAMBOO LDAP,OU=service,OU=accounts,DC=company,DC=com</securityPrincipal>
in <baseUserNamespace> we are going to specify where our users have been created in the Active Directory
in <baseGroupNamespace> we are going to specify where our groups have been created in the Active Directory
in <userSearchFilter> we are going to get all users that are members of “Bamboo.App.Admin” and “Bamboo.App.Users” groups
in <groupSearchFilter> we are going to get all the groups specified in <baseGroupNamespace>
<!– Default bamboo user repository –>
<hibernate name=”Hibernate Repository” key=”hibernateRepository” description=”Hibernate Repository” cache=”true”/>


Restart Bamboo service



Point Bamboo to LDAP repository:

Administration-User Management


Security-user repositories-Custom user repository-save, if config file has any error,it will be shown when you click Save, correct it and click Save again




You should be able to login with AD credentials


Setting permissions

Security-Global permissions-under Group access add group and chose permissions