Today I'm facing with problem to change host-named of existing site collection to another. It takes me a lot of search with some issues in each steps. So I think that will be useful if I summarize something here to save my time in future and your time also.
In short, what I do exactly is:
- Create new site collection with new domain
- Deploy the website on it
- Backup old site collection, then Restore on the new site collection
Before the begin, lets define some addresses I will use in detail steps.
WebCollectionAddr : that's the web collection address, ex: sharepoint-123:8888
OldSiteCollectionAddr : that's the old site collection address, ex: sharepoint-123:8888/sites/mysite
NewSiteCollectionAddr : that's the new site collection address, ex: mysite.com
I will use those above sites to demonstrate in each steps, so you should change it by your own sites.
Now we go in detail each step:
1. Create IIS binding for domain:
- Go to IIS Manager, click on your site under 'Sites'. You can see 'Bindings...' somewhere in the right content, click on.
- Click 'Add'to add new and follow the step to create new site binding.
2. Create new site collection
- Use sharepoint Powershell:
New-SPSite ‘http://NewSiteCollectionAddr/’ -HostHeaderWebApplication ‘http://WebCollectionAddr’ -Name ‘My site’ -Description ‘This is my site’ -OwnerAlias ‘domain\account’ -language 1033 -Template ‘STS#0’
- Note: domain\account that account to login and have permission to create site collection
3. Check site is created
- Use sharepoint Powershell:
Get-SPSite 'http://NewSiteCollectionAddr/'
4. Deploy the web site
- Deploy the web site in the new site collection
5. Backup the old site collection
- Use sharepoint Powershell:
Backup-SPSite 'http://OldSiteCollectionAddr/' -Path 'D:\SPBackup\bk_name.bak'
6. Delete old site collection
- Go to sharepoint Central Administration > Application Management > Delete a Site collection
- Select the old site collection then delete it
7. Remove the old site collection from recycle bin
- After deleted, the site collection go to recycle bin, to restore data to new site collection, you should completely delete old site collection
- To do that, you should get site id of old site collection from database 'AllSites' table
- Use sharepoint Powershell:
Remove-SPDeletedSite -Identity 'GUID_SITE_ID'
- Note: GUID_SITE_ID will be changed by site id, usually is guid text
8. Run Gradual Site Deletion Timer Job
- Go to Central Administration > Monitoring > Review Job Definations.
- Click on job name: Gradual Site Delete. Click on Run now.
9. Restore to new site
- Use sharepoint Powershell:
Restore-SPSite 'http://NewSiteCollectionAddr/' -Path 'D:\SPBackup\bk_name.bak' -HostHeaderWebApplication ‘http://WebCollectionAddr’ -Force
Follow those steps, if you have any futher issue please comment in this blog.
Thank you.
Tuesday, January 19, 2016
Saturday, April 18, 2015
Time management and discipline are the things I should always care about.
It's exactly my problem now. With a few days left I must be done a lot of studies. I have a lot of work plus study technical and have to take 2 certifications by next week. HOW the hell can I arrange time to do all these things.
That is my issue right now, but what really make me in the bad emotion is what did I do when I'm having nothing happen at all? The risk when I waste my time to do something no value at all now become a big issue.
So now, I should come back to time management and discipline problem. I should careful about what I spend time for and should thinking next some steps in future.
Here is crazy list, I wanna memory it here;
1. Pluralsight: Building HTML5 and JS apps with MVVM and knockout JS
2. Knockout JS
3.Durandal JS
4 UT for JS: qunit
5. LESS CSS
6. Sencha Tough JS
7. Get 2 Microsoft Certifications: 70-483, 70-484
8. Wordpress
That is my issue right now, but what really make me in the bad emotion is what did I do when I'm having nothing happen at all? The risk when I waste my time to do something no value at all now become a big issue.
So now, I should come back to time management and discipline problem. I should careful about what I spend time for and should thinking next some steps in future.
Here is crazy list, I wanna memory it here;
1. Pluralsight: Building HTML5 and JS apps with MVVM and knockout JS
2. Knockout JS
3.Durandal JS
4 UT for JS: qunit
5. LESS CSS
6. Sencha Tough JS
7. Get 2 Microsoft Certifications: 70-483, 70-484
8. Wordpress
Saturday, July 28, 2012
Living energy
Hi, everyone.
Today I feel like a dancer. I want to dance some very simple steps. When I'm a student (like you), I'm always being shy, I'm afraid people laugh me when I do crazy things (I mean dancing). Now, I'm not.
Let's dance my friends.
http://www.youtube.com/watch?v=6UV3kRV46Zs
http://www.youtube.com/watch?v=aWjeITmDmmo
http://www.youtube.com/watch?v=b9RwOSMccrg
http://www.youtube.com/watch?v=zPmsK3YKxh8
I will collect more :D
Today I feel like a dancer. I want to dance some very simple steps. When I'm a student (like you), I'm always being shy, I'm afraid people laugh me when I do crazy things (I mean dancing). Now, I'm not.
Let's dance my friends.
http://www.youtube.com/watch?v=6UV3kRV46Zs
http://www.youtube.com/watch?v=aWjeITmDmmo
http://www.youtube.com/watch?v=b9RwOSMccrg
http://www.youtube.com/watch?v=zPmsK3YKxh8
I will collect more :D
Thursday, July 26, 2012
To become a good developer
For I good developer I want to become:
Planning: getting the required information, tools and resources together;
Designing: both high level (strategic) and detailed design during which we analyse the problem and work out how to solve it;
Coding: actually typing in the lines of code;
Compiling (if we are using a compiled language): running the compiler and correcting any errors until we get the program to run;
Unit Testing: running one or more tests to check if the program is correct. While testing we sometimes have to correct errors to the design or the code and re-compile the program.
Planning: getting the required information, tools and resources together;
Designing: both high level (strategic) and detailed design during which we analyse the problem and work out how to solve it;
Coding: actually typing in the lines of code;
Compiling (if we are using a compiled language): running the compiler and correcting any errors until we get the program to run;
Unit Testing: running one or more tests to check if the program is correct. While testing we sometimes have to correct errors to the design or the code and re-compile the program.
Wednesday, July 25, 2012
What do I hunt for my goal?
OMG
I always think I need to learn something new and modern such as: Android or iOS programming technical. But I forget a key to success when I learn a thing. I need to use my knowledge to learn more deeply in my technical. I mean I will learn something like: design pattern, software design, how to build a big software throw internet, information security and database manager...
I am in my way for study English, this year I cannot change my technical so much. But I already have plan to change my technical in next year. I need to be careful to choose what I will do, step by step to change my life. Surely I want to reach my goal as early as possible, but I each one step I need more careful. In my country we have a sentence:
"You want to fast, you must slower".
Subscribe to:
Posts (Atom)
