Backup in Linux

Backup in Linux

$ tar   cvf    backup.tar  .

C = create an archive

V = verbose mode

f = file name

. = current directory

Display the content of tar file

$ tar  tvf   backup.tar

t = table of content

To extract tar file

$ tar  xvf  backup.tar

X = extract

Using tar with compression

$ tar  zcvf  backup.tgz  .

z = gzip compression

c = create archive

.   = current directory

Your email address will not be published. Required fields are marked *