![]() ![]() Also check your proxy settings and make sure you have the right proxies enabled to download/ wget it from the correct source. Output: downloading from the official site and check if their download links have changed. If it was indeed a correct zip file (binary in nature) the output of head would have produced garbage - something like below - head jdk-8u144-linux-圆4.tar.gz The above shows it is indeed an HTML page which we are trying to unzip/untar - something that won't work. For example, an HTML file would give the below output - head jdk-8u144-linux-圆4.tar.gz You can also file, head, less, view utilities to check the file. The above shows a correct gzip application file has been downloaded. XX.XXX.XX.XX, XX.XX.XXX.XXĬonnecting to ()|XX.XX.XXX.XX|:80. This sort of confirms that you haven't received a gzip file.įor a correct file, the wget output will show something like Length: 185515842 (177M) as shown in the below output - wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" The same command can be used to extract tar archives compressed with other algorithms such as. The tar command will auto-detect compression type and will extract the archive. XXX.XX.XX.XXXĬonnecting to XXXX (XXXX)|XXX.XX.XX.XXX|:80. To extract a tar.gz file, use the -extract ( -x) option and specify the archive file name after the f option: tar -xf. Check the wget output below - wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" v means verbose, or to list out the files it’s extracting. The basic command is tar, followed by four options: x instructs tar to extract the files from the zipped file. When you download a file with wget, check for indications like Length: unspecified which shows it is plain text (text) and that it is intended to be interpreted as html. You can unzip these files the same way you would unzip a regular zipped file: tar xvzf. This means the file isn't really a gzipped tar file - or any kind of gzipped file - in spite of being named like one. ![]() Tar: Exiting with failure status due to previous errors Tar: This does not look like a tar archive Tar: Error is not recoverable: exiting now I then enter the passphrase for my file twice and I now get a file called Then I download the file and use sudo openssl aes-256-cbc -e -in .enc -out Gdrive upload -file "red-backup-$(date '+%Y-%m-%d').tar.gz.enc" -p "jofhriout849uioejfoiu09" Tar -zcf "red-backup-$(date '+%Y-%m-%d').tar.gz" /var/lib/automysqlbackup/ tar.gz file, encrypts, and then sends it to a drive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |