backup & restore data | Linux environment | AWS snapshot
backup & restore data | Linux environment | AWS snapshot
------------------------------------------------------------------------
high level points
----------------------
INSIDE SERVER1
----------------------
1.create Linux server1 inside AWS Cloud
2.create a volume
ex: volume name: /dev/xvdb
3.attach volume to the Linux server
4.make partitions
ex: fdisk /dev/xvdb
press enter button
two partitions
partition 1: /dev/xvdb1
partition 2: /dev/xvdb2
5.format the partitions with file system (ex:ext2,ext3,ext4 and xfs --Latest)
attaching file system to the disk is also called as disk format
(indirectly inform to the os is also called as disk format)
disk format can be done with the help of "mkfs" command
ex: mkfs -t xfs /dev/xvdb1
mkfs -t xfs /dev/xvdb2
6.create & attach mount points(folders) to the partitions
mount folder creation process:
-------------------------------------
mkdir project1
mkdir project2
mounting process:
-----------------------
mount /dev/xvdb1 /project1
mount /dev/xvdb2 /project2
7.store some data inside partitions through mount points (folders ex: project1)
8.check the data inside partitions through mount points (folders)
--------------------------
BACKUP PROCESS
-------------------------
1.create snapshot from the existing vol which is available in server1
create snapshot from the server1 existing volume /disk
2.by using this snapshot create a new volume/disk
---------------------------
RESTORE PROCESS
---------------------------
1.create a Linux server2
2.attach a new volume/new disk to the server2
--------------------------------------
CHECK YOUR BACKUP DATA
--------------------------------------
1.login into Linux server
2.crete & attach mount points to the partitions
mount points or folders or access points
attaching mount points or folders to the disk /partitions
this process is called as mounting
mounting can be done with the help of "mount" command
mount /dev/xvdb1 /project1
mount /dev/xvdb2 /project2
note: here "project1" is a mount point or folder
3.check the data inside partitions with the help of mount points(folders)
ex:
cat project1
cat project2
Comments
Post a Comment