im migrating websites to a new hestia host, and ive found that if i compress all files and extract them at the host, they have different file permissions, is there any proper way to fix this so that nothing is compromised and locked down well?
You should pack and compress them using tar
, this command will preserve permissions:
tar zcpf yourbackupfile.tar.gz /path/to/dir/
1 Like