We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
restore user permisson denied
restore user permisson denied
Hello..
I want to migrate my stuff to another server so ive used the backup command and this:
v-restore-user admin admin.2017-04-04.tar
but everytime i get after press enter
PERMISSON DENIED
i dont rly know why........
if me anyone can help i will spent something to the com.... this problem makes me headache
sry for my english im african
I want to migrate my stuff to another server so ive used the backup command and this:
v-restore-user admin admin.2017-04-04.tar
but everytime i get after press enter
PERMISSON DENIED
i dont rly know why........
if me anyone can help i will spent something to the com.... this problem makes me headache
sry for my english im african
Re: restore user permisson denied
You're restore archive under root , right?
-
- Posts: 1
- Joined: Thu Apr 20, 2017 11:34 am
Re: restore user permisson denied
yes i tried this under root and under the admin@XXXXX login...
under root directly i get: PERMISSON DENIED
under admin i get: COMMAND not found...
[email protected]
/usr/local/vesta/bin/v-restore-user xxxx xxx
-> COMMAND NOT FOUND
[email protected]
sudo /usr/local/vesta/bin/v-restore-user xxxx xxx
-> PERMISSON DENIED
[email protected]
v-restore-user xxxx xxx
-> PERMISSON DENIED
** Sorry for the new account here. i was yesterday so tired that i forgot my details **
under root directly i get: PERMISSON DENIED
under admin i get: COMMAND not found...
[email protected]
/usr/local/vesta/bin/v-restore-user xxxx xxx
-> COMMAND NOT FOUND
[email protected]
sudo /usr/local/vesta/bin/v-restore-user xxxx xxx
-> PERMISSON DENIED
[email protected]
v-restore-user xxxx xxx
-> PERMISSON DENIED
** Sorry for the new account here. i was yesterday so tired that i forgot my details **
Re: restore user permisson denied
Fist at all:
viewtopic.php?t=9685#p34354
And next..
viewtopic.php?t=9685#p34354
And next..
Code: Select all
cd /backup
Code: Select all
v-restore-user user user-backup-archive
Re: restore user permisson denied
Hey, I had the same problem, but i didn't found de solution in the forum.
I checked var and scripts and all is fine:
But I found a solution. I exec:
and saw:
My VestaCP create backups with date_time, but v-restore-user check file ONLY with date.
The solution is simple:
Code: Select all
[root@server]# v-restore-user user user.2017-10-04_124531.tar
Error: permission denied
Code: Select all
[root@server]# echo $VESTA
/usr/local/vesta
[root@server]# head -n15 /usr/local/vesta/bin/v-restore-user
#!/bin/bash
...
# Import VESTA variable for cron launch
source /etc/profile
...
Code: Select all
[root@server]# bash -x /usr/local/vesta/bin/v-restore-user user user.2017-10-04_124531.tar
Code: Select all
...
+ [[ user.2017-10-04_124531.tar =~ ^user.[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].tar$ ]]
+ check_result 10 'permission denied'
...
The solution is simple:
Code: Select all
[root@server]# mv user.2017-10-04_124531.tar user.2017-10-04.tar
[root@server]# v-restore-user user user.2017-10-04.tar
Re: restore user permisson denied
cthemudo, do you modified the v-backup-user script?
Re: restore user permisson denied
SORRY! My fault!
My admin modified the v-backup-user script for have multiples backups in one day.
He changed in /usr/local/vesta/bin/v-backup-user
time_n_date=$(date +'%T %F') <-> time_n_date=$(date +'%T %F_%H%M%S')
Sorry again!
My admin modified the v-backup-user script for have multiples backups in one day.
He changed in /usr/local/vesta/bin/v-backup-user
time_n_date=$(date +'%T %F') <-> time_n_date=$(date +'%T %F_%H%M%S')
Sorry again!
Re: restore user permisson denied
I think he used this modification https://github.com/serghey-rodin/vesta/pull/1289, but this modification is not official and not tested by project staff.
We recommend you to use the test servers if you will want to help us with testing third-party modifications.
We recommend you to use the test servers if you will want to help us with testing third-party modifications.
Re: restore user permisson denied
Actually it works, but maybe he not change v-restore-user part so, he can create backups but not restore it.imperio wrote:I think he used this modification https://github.com/serghey-rodin/vesta/pull/1289, but this modification is not official and not tested by project staff.
We recommend you to use the test servers if you will want to help us with testing third-party modifications.
The problem of this is than you need apply patch to all servers you use :/
Re: restore user permisson denied
changing the backup filename to include the date of the backup in the format <user>.<yyyy-mm-dd>.tar worked for me after i had changed the backup filename\