I need to migra all users to a new hestiacp panel on the new VPS and i dont want to do it 1 by one cause is more than 800 users
In origin Hestia server you must backup all your users first.
v-backup-users
You should copy all those backups from dir /backup/ on origin server to dir /backup/ on your new server.
One done, you can use this command to restore all the users:
for i in $(ls -c1 /backup/*.tar | sed -E "s/^\/backup\/(.+)\..+tar/\1/" | sort -u);do fbackup="$(ls -rt -c1 /backup/$i.*tar | tail -n1|awk -F '/' '{print $NF}')";/usr/local/hestia/bin/v-restore-user "$i" "$fbackup";done
It basically will look for all tar files in /backup/, will extract the user and the last tar for that user and will execute v-restore-user
command.
For example, if there is a backup like this /backup/test.2024-07-20_16-54-52.tar
it will execute this command:
/usr/local/hestia/bin/v-restore-user test test.2024-07-20_16-54-52.tar
Do some tests before doing it for all your accounts.
4 Likes
what message you should get when you run v-backup-users
Nothing only shows you an new line when completed
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.