Taking the backup in linux os server:
How to take the backup in linux os (via cli commands):
How to take the backup of linux server?
using the cp and tar command we can take the backup of the linux os
cp command :
How to take the backup of linux server?
using the cp and tar command we can take the backup of the linux os
cp command :
cp --backup source files destination directory
first we need to create the files
using touch command :
touch file.txt1 file.txt2
next we need to create the directory:
mkdir /backup_files
next we need to take the backup of all the files into backup directory
cp --backup file.txt1 file.txt2 /backup files
so in this we can take the backup of the files Ans folders....
-----------------------------------------------------------------------------------------
tar command in linux os :
backup and restore :
tar -cvf filename adding with .tar ) (directory name )
tar full form :
-cvf :
craete
v -verbose
f- filename type
restore the backup :
tar -xvf (type the name which we are used for back name with .tar) (directory name)
-xvf :
-x = extract
v-verbose-
f-file name type
Comments
Post a Comment