hello
how to view web files from backups ?
i have some php files that i want to extract but inside there are no php files just some large files.
restoring backups works fine but with hestiacp
Hi @alinux,
Web data, by default, is compressed with zstd. This data is inside your backup tar file and the path is.
./web/YourDomain/domain_data.tar.zst
So you need first to extract that file if you want to extract later your php files.
Example:
In this example:
Backup file: alinux.2024-05-28_05-10-17.tar
User: alinux
Domain: example.net
Note: Replace above with the real data.
cd /backup/
tar xvf alinux.2024-05-28_05-10-17.tar ./web/example.net/domain_data.tar.zst
cd web/example.net/
If you want to list all the files:
tar tvf domain_data.tar.zst
If you want to list all files inside public_html/
tar tvf domain_data.tar.zst public_html/
If you want to extract all files inside public_html/
tar xvf domain_data.tar.zst public_html/
cd public_html/
And here are your files.
im in the same directory as the domain_data.tar.zst and if i run tar xvf domain_data.tar.zst public_html/
i get this:
tar xvf domain_data.tar.zst public_html/
tar (child): zstd: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tested on ubuntu lts
But are you using tar in your Hestia server or in another Linux machine? I ask because that error means zstd
package is not installed and Hestia installs it.
apt install zstd
And try again.
oops ! my bad !
thank you. it works ^^
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.