Error while restoring a backup

I tried to restore a backup of a user account via terminal command but got the below error.

galler@server2:/backup$ v-restore-user synergy synergy.2024-11-01_05-10-45.tar 
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
grep: /usr/local/hestia/data/users/admin/user.conf: Permission denied
mktemp: failed to create directory via template ‘/backup/tmp.XXXXXXXXXX’: Permission denied
sed: can't read /usr/local/hestia/data/queue/backup.pipe: Permission denied
Error: Can't create tmp dir
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied

More errors if I use v-restore-web-domain cmd.

Use root user to restore

You are missing the required access rights. You could try to start the command with sudo or as root.

with sudo or root,

sudo: v-restore-user: command not found

I think it’s not added to bash profile by default, need to add /usr/local/hestia/bin/ to PATH. It would be better if it’s added to profile by default in hestia

Agreed.
For the time being cd to that bin path and run the command over root/sudo su.
Ensure the /backup folder has the tar/backup file present.

Update: I checked my bash, and I can see it present:

if [ “${PATH#/usr/local/hestia/bin}” = “$PATH” ]; then
. /etc/profile.d/hestia.sh
fi

1 Like

We add it on new installs for some time but never did before …

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.