extract tar.gz to absolute path
i'm helping somebody build a web page, and want to have a tar.gz archive of the whole file tree extract into /var/www/html/weblog. the file tree has been archived by adding /home/user/var to the archive, so that the top folder in the archive is /var. how do i insure the file tree in the archive drops into /var on the web server when it's extracted? the actual file tree inside the archive is /var/www/html/weblog with several subdirectories included below weblog. i see plenty of people ask online how to extract into a relative path, because the search terms "extract tar.gz to absolute path" brings up scads of questions on how to avoid extraction to absolute paths.
|