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.
Can I Restore a Backup from VCP to a different user?
-
- Posts: 43
- Joined: Tue Apr 18, 2017 10:54 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Can I Restore a Backup from VCP to a different user?
Subject asks it all. I know it's probably been answered a million times, but I couldn't find it. I'd prefer to do it via GUI, but if I have to CLI, I understand.
Backup from user Admin, to another user. System is ubuntu 16.04LTS x64
Backup from user Admin, to another user. System is ubuntu 16.04LTS x64
Re: Can I Restore a Backup from VCP to a different user?
@ohioiproject By ssh console you can access the user's directory and with a simple command move it or copy it to the other directory.ohioiproject wrote:Subject asks it all. I know it's probably been answered a million times, but I couldn't find it. I'd prefer to do it via GUI, but if I have to CLI, I understand.
Backup from user Admin, to another user. System is ubuntu 16.04LTS x64
Practical example:
To copy go to the directory.
Code: Select all
cd /home/USER/web/WEBSITE/public_html
Code: Select all
cp -R * /home/NEW USER/web/NEW WEBSITE/public_html
To move the files we would simply change cp to mv, example.
Code: Select all
mv * /home/NEW USER/web/NEW WEBSITE/public_html
Code: Select all
chown NEWUSER:NEWUSER -R /home/NEW USER/web/NEW WEBSITE/public_html
Last edited by sysdop on Fri Dec 08, 2017 12:58 pm, edited 1 time in total.
-
- Posts: 43
- Joined: Tue Apr 18, 2017 10:54 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Can I Restore a Backup from VCP to a different user?
the only downside to this idea of yours is that it doesn't add the databases, emails, or anything else that is already propagated, and also won't work with how Vesta detects and forwards domains so the Vhosts files would never be built or would still be pointing to the Admin user.sysdop wrote:snip
-
- Posts: 43
- Joined: Tue Apr 18, 2017 10:54 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Can I Restore a Backup from VCP to a different user?
Solved via this doc: https://vestacp.com/docs/#how-to-migrat ... her-server
If you want to restore data under another user name, simply rename archive. If user name doesn't exist on the server, account will be created automatically.Code: Select all
mv /home/backup/admin.2014-01-14.tar /home/backup/newuser.2014-01-14.tar v-restore-user newuser newuser.2014-01-14.tar