Compress and archive

tar -cf /dir1/backup.tar /dir2
create tar archive file /dir1/backup.tar for /dir2
tar -xvf /dir1/backup.tar -C /dir2/
extract tar archive file /dir1/backup.tar to /dir2/
Comments