We're going to talk about now how big data backup of this tech Jenkins nexus and so on YouTube.
So if you have the backup of all the data that we have created, then we can safely delete our instances
and record our data whenever you want, whenever we want.
We can create these instances and restore all the data that we have taken the backup.
Now, that is one reason of taking data, backup of CDs.
The other reason is we are going to use this backup cloud formation project in cloud formation project,
which will automatically set up the interactive stack and restore all our data.
I will also show you how you can then restore your entire stack.
OK, let's see the steps that we are going to take to do this entire backup.
So we need an F three buckets to create an extra bucket.
We can do it, I rule with street access and we're going to attach this rule to all our instances,
Jenkins Nexxus, a Soknacki observer.
And if you are in continuous delivery projects and you have a Tomcat settle on an easy to instance,
then you have to attach this rule to Tomcat server also because you're also going to copy to configuration
files.
We have three bucket.
Then we log into Jenkins' instance, we're going to shut down the Jenkins' service.
You're going to clean up all unnecessary data, Jenkins home directly will be huge in size and there'll
be some unnecessary data like workspace, which you really don't need to take backup, which can be
generated anytime you're on the job.
So we'll clean such data, then we'll archive of ad lib jenkins' directory you're going to use Takamatsu
will create outpoll will install A.W. Elaine Jenkins and will copy the Jenkins archive to the S3 bucket
that we created in the first step.
Similar way we log into the next server we shut down.
The next service will archive AppNexus directly.
In this directly we have installed Nexxus project.
Going to install Ableist Seelie in Nexus.
Recopy Nexis archive to the chemistry bucket, the chemistry bucket will copy all the data.
Then we log into Sauniere server and here we have actually two things to dig back up, so will first
shut down, DeSaulnier service will archives up.
So innertube directory where we have installed on the server.
We are also going to archive Charlie PostgreSQL directly.
We are going to install A.W. Seelie and we'll copy soon that KUB and PostgreSQL are Kypreos Chemistry
Buckett.
So then keep note of the extra bucket that you have created and also the archive file names, because
we are going to use them into a cloud formation project.
And in any case, you want to recover, restore your stack.
You can use this archive to restore your data.
I'm in my management console and I have these many instances.
I have a Nexus server SONOR Server Jenkins instance.
If you're in continuous integration project, then you'll only have these three instances.
If you're in continuous delivery project, you should be having database Windows Server and application
server Tomcat.
We're going to take backup of Nexus Sonor Server Jenkins' and also a few configuration files from our
server.
We are not going to take any backup of DB and Windows Test Server.
OK, so let's see the Jenkins' first.
Also, keep in mind the password that you have set, because when we restore will be having the same
setup.
Exactly.
So you need to login with your same username and password.
So currently, I'm in this state, I have a few jobs and I have a lot of plug ins installed.
If I happen to delete this JENKINS' instance are to recreate it, which is easy to do.
Setting up, Jenkins said this is no big deal, but then we have to set up all these jobs and install
all the plug ins to come to this level.
If you're thinking taking off what you can do that, you know, and we have this instant and storing
it.
But then we have multiple instances and you may end up paying some money for the Ebb's volume if you're
keeping it for a long time.
OK, first thing first, let's create an extra bucket.
I don't try to create the EU with the same name, but as three names are unique, so you have to find
your own names, I believe because of the profile hyphen.
See, I could even STAC hyphen back up.
I'm creating an Ohio region, so choose a region that you usually use, so the data copy and data backup
restore will be faster, but it really doesn't matter where they are.
We can still backup and restore from Buchard in any region.
I hope that's my unique name and have not used that name.
Let's try it.
OK, so I created a bucket with this name.
Now I'm going to create an IM role.
Go to rules.
Create role for the U.S. to encourage.
Policy so you can create policy.
To give you access only to that S3 bucket.
Are much easier, you can just see a street full access policy, but then that will give access to all
the extra bucket.
If you're the only user of desirables account, then that is fine.
But if you're sharing with someone, then that could be a problem.
They have given some name to it.
Its creator, we profiled three full access, attach this role to all the instances.
Starting with sonar, sorry, Nexxus.
Instance setting.
Modify and Ron.
We profile Cassidy as three full access.
Steve.
OK, like that do, for all instances, give the Astrium rule to every instance.
OK, also, if you are in continuous delivery project, you'll have the application server give them
access to this instance as well.
If you're in continuous integration project now, then this much is fine.
I guess I log into first Jenkins instance, let's take backup of Jenkins first Skype address.
So log in to your Jenkins' instance.
OK, switch to route user.
Stop, stop drinking service.
Let's go to our Leyb.
OK, you should see the Jenkins directly, a seat size.
Currently, it's 428, maybe year could be bigger because I have already cleaned some data.
But I'll show you how to clean the data.
OK, let's do the clean up of unnecessary funds that we get generated when you run the jobs first the
repository.
OK, dot, M-2 directly involved Jenkins Dot M-2, you will see a directory called Repository, you
can just delete that directly or you can just delete data from here because whenever we land the job,
it's continuous.
Download the dependency and keep it locally so we don't need this when we restore.
OK, other data is workspace,
workspace, you will see the job dinner, the director with the job names, you can delete all this
directly or you can get into the director and delete the data.
Be careful what you're deleting or imaginative stories are dangerous, come on, so be careful with
that.
My recommendation, you get into the directories and delete the data instead of deleting whole thing.
OK.
That's going to take a little while, but you just want time back up once you have the back up, then
any time you can restore.
So we deleted them to a repository, we deleted the workspace.
Now one more thing is there.
If you're archiving your artifact.
Then you should have in jobs, you should have.
Like, for example, in Bill Project Job in the Bills, I should have this you should have this number
one, two, three, four, five, six, seven, eight, nine.
A number of times you ran the job.
Whenever you said Arko artifact, you will create an archive over here like in this direction named.
Then you have the archive.
So you see that there is an artifact over there.
Right.
What you can do is you can just delete this numbers like the directory with the numbers, you can just
delete them one, 10 and nine.
I have you may have different different numbers.
OK, so just delete those directories if you have if you're doing archiving other jobs.
Also, you should have this no directories in other workspaces, also in this job directly.
So what are you going do you get a new hyphen which you can see the size of your current directory against.
Do you have a message star.
And to show you the size of all the directory, it's in CBIZ and maybe so.
Doesn't matter if you have larger numbers, get into that and get into that directly, find the number
of directories and just delete them because they will get generated anyways.
OK, so we deliver three things, dot to repository workspaces and in the jobs directory.
We have, again, workspace directress in this, we have deleted the requisite bill, No.
Now, your Guadaloupe Jenkins says, should be smaller if you don't, do you have any such invalidly
Jenkins you will see something around five hundred and be OK.
If you're seeing more, find out unnecessary things and delete them.
Do not delete plug ins.
OK, we need those plug ins.
OK, now it's time to archive this down.
Hyphen Caesar v f and I'm going to name this as Jenkins'.
Underscores CCD jobs.
Da da da da said you can keep the same name, it will be helpful in the cloud formation project, but
if you're given different name, it's jobs.
Yes, but if you're given a different name, no problem in cloud formation, project will change the
name.
You can change the name of the archive.
That should be fine, but no down the names.
So that's archivists.
OK.
Oh, you have some on Nakash you directly, we could have cleaned that also, but that is fine.
Get this much size.
Fine.
We should have now.
The Darbelnet Checketts sighs Do you have any such?
OK, that's reduced if even if it's big size, okay, don't worry, we're going to put it on a three
bucket.
Will be copied very quickly over there.
If you want, you can download it and keeping your local machine also.
OK, now let's run as a rebellious streak or we have to install it.
I already have it installed, but still, I'll show you Apte install Seelie.
OK, we have a Lucila now it's time to copy your data, A.W. s3 sepi vegging to copy.
Jenkins at the time does not walk over here to copy the file name
Eatables S3 CB.
And the bucket name is ridiculous.
So let me get the bucket name.
That's my bucket name.
They copy the name.
Don't create any subdirectories just in the bucket itself.
OK?
OK, so they just started copying, you see, three for the NBN.
Yeah, I didn't even complete my sentence and it has copied.
So as I told you, don't worry about the size.
Even if you're not able to click on a clear or clean the directories, that is also fine.
OK.
OK, so one back taken.
Let's see.
Good job.
OK, let's do the same for the other two other instances.
Now let's go to.
No Nexxus.
I fully understood what he had to do, you can, you know, keep doing it or if you still want to,
so you can keep watching the video.
Now, these Santos user.
Three.
And you should see it next Tuesday, the clean up first, let's stop the Nexus Service.
OK, let's take its archive to our house and see that we have.
Nexxus hyphen, CD hyphen, vibro hyphen protegees, that's the name I have given again, you can use
the same name or you can use different name.
OK, I've taken it up as three c.p.
Strickland, slash, slash.
Same bucket name.
Done.
OK.
That was Foster.
OK, let's go from here if you want to continue in, know with your staff, you can just start the Nix's
and jinking.
So it's OK if you're done now, let it be stopped any way.
Taking the back up, we can record later.
Soknacki Observer.
OK, here you have two things to back up, one is Sonakshi Subdirectory and then PostgreSQL.
Let's stop this.
Ownership's those first.
Outside its name is Sonor Cube.
Let's go to opt.
OK, let's take it back up.
So not a cube hyphen, Vipul Hyphen, Cruel Hyphen, DataDot Desert.
That's the name I have given.
Backup taken, that's Cooperativeness Street.
It was a strictly Darvel done also.
If you wish, you can start the summer service, but if you're done, just log out.
All right, if you're in this integration project, this is done, if you're in continuous delivery
project, then.
We only have one more server.
They're not going to take the data back, but configuration file backup.
Which will be, again, using a cloud formation project.
Logging into the Tomcat server.
Get into your Tomcat home directly, use our local Tomcat here, I suppose, yeah.
OK, in the contradictory should have Tomcat hyphen uses dot XML that file we are going to copy touristy
Bucher.
See, we we need to change it.
OK, that's done.
OK, now in Web apps, you should have a manager directly in that you have made the iPhone enough.
OK, there you should see context Summer is three CP copy this file.
Compared to the EU budget.
All right.
OK, let's check out the three pocket blues, three Alice.
And once you're done, you should have jinking create jobs, da da da, Nexus iPhone, CD hyphen, vibro
hyphen crude Auxerre.
So NAKU hyphen v. pro-life and pro-choice or pro-life and DataDot Desert Tomcat uses NorTech Semillon
context Artec similar.
You should have this in your bucket.
No down the name.
No down the name of the bucket would be using this in cloud formation project.
I'll OK one quick with a sample to how to restore manually this data.
Let's take example of Jenkins'.
OK, so I'm going to launch an easy Dunston's and say, first, let me just shut down all this instant,
dude, stop.
I don't need it now, so I'm going to shut them down.
OK, I'm going to set up a jenkins' server now, so I want to server 20 should be fine.
Due to micro.
OK, I'm going to set up the Jenkins' service from user data, so I have to see Souto out of date.
To make sure to give the best part.
Pseudo Apte, install open JDK hyphen E, Typhon, JDK iPhone Y to install Mavin.
And whatever you need, it just put it out there.
Which should be fine, and then Jenkins installation steps.
OK, so the Jenkins installation documentation from there, I'm just copying these commands.
OK, this will not work out, we have to go and put this into the file.
OK, so I'm saying through I fancy echo.
And you dedicated to this fight.
And finally, pseudo apte of date and then solo act install Jenkins, right now we know there's a fresh
insurgences.
You'll be fresh.
Jenkins set up no jobs, no plug ins, nothing.
Right.
OK, this is fine now, but we'll see how we can restore from our data.
Restore or just do some name, restore hyphen Jenkins'.
Configure Security Group, I'm going to use some existing security group, jinking security group.
Launch and I'll use a key that I already have.
OK, we, which we wait for a few minutes, will wait until this is entirely set up and then we login
and will restore the data.
Now, it's few minutes now I will check whether the Jenkins' service is up or not.
OK, seem to be responding, OK?
Jenkins is up and we have to do the post installation step.
It's a fresh set up and, you know, then you can have to set up all the jobs and install all the plug
ins and stuff.
You'll have the backup.
So we're going to restore from that backup.
So we log into this Jenkins instance.
SCoPI, Tibey.
Be the route user, first thing you're going to do is you're going to stop the jinking service here
so it doesn't interfere with our research process go too far, Leyb.
OK, unless hyphen Aldy.
You should have the Jenkins directly and get also know down the ownership of this, this is Jenkins
user.
Once we restore this, ownership may change.
So you have to make sure you give this ownership back to us directly.
OK, now we have a backup on the asri bucket and we want to download it to our instant.
So I'm going to attach a rule so it can authenticate.
I'm going to use the same rule profile, the time of restriction.
If you're not seeing this at all, create another rule.
Simple.
OK, so that's the three bucket.
That's Corbett's name.
Let's go to Back-Door Jenkins, so I'm going to say Ative Lewis s three CB as three colon slash slash
the bucket name.
Oops.
McCartney slash and the file name.
That one.
You can compete from their copy.
And I'm going to say darts or download it in this vasiliev directly.
Now I have to install A.W. Seelie and install eight of those yellow.
OK, install now I can run the command eatables recopy here.
OK, now simply I'm going to say da, x, z, v, f extracted.
That's a can override the fines that you already have in Jenkins', you did a Dinkins installation so
that only Dinkins filed.
It's going all right.
A lot of fines.
OK, check the permission if it's not good, this give Jenkins.
Jenkins, but if you take a backup.
Well, you know, all you doing right, we are archiving, so it's going to preserve the permissions
and all, but it's a good idea and use recursively.
OK, so all the files as Jenkins permission now let's start.
Jenkins service system star Jenkins, that's going to lure Jenkins with the data in the Jenkins directory
and this is the data from previous Jenkins set up.
Right.
Let's see that it's going to take a moment to come up.
Sapientis.
OK, now a login page, right?
So I remember the username and password that I have given.
Again.
And welcome back from where we started at.
Now, I know you can take a back up, can take EMI of the instance, but then you have to pay for the
storage cost.
But in any case, do this backup process because we need this in cloud formation project.
OK, now they will be in the jobs, there'll be all types of Nexxus sonar, all tokens, so you have
to change all those things to change the whole IP.
I now give the new IP in the jobs in the next job and so on.
Cute job right now, Dawkins' and all those things have to change.
Right then you can run the pipeline.
All right.
That's that's all in this video.
Thank you very much for watching.
Now you can continue with other videos.