To backup the file using tar
To backup the file using tar the syntax is
#tar -cvf (destination and name to be) source file
#tar -cvf /temp/opt.tar /opt
Apply gzip on tar file and check the size.
To apply gzip on a tar file, the syntax is
#gzip file name
#gzip /temp/opt.tar
To gunzip a file the syntax is
#gunzip file name
#gunzip opt.tar.gz
To untar a file the syntax is
#tar -xvf file name
#tar -xvf opt.tar
Смотрите видео How to take back up in linux using tar and gzip? part 1 | tar | gzip | RHEL | Linux | back up онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Red hat Linux Training for beginners 24 Июль 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 319 раз и оно понравилось 12 посетителям.