Posted On October 22, 2024

SolusVm Automated Move Script

Think 0 comments
>> Dedicated >> SolusVm Automated Move Script

This is code I found in my stash this was created by nixtree Id had paid for to move vps nodes what this does it moves all the vps’s that are on the vzlist.

you would add the vps id on the vzlist that you want to move.  This comes in handy.

First step you need to make vzlist.txt and add in the vs serverids to the text file .

then you wan to create this the mov.sh file

#!
DESIP=ip here
NEWNODEID=13
for VSERVERID in `cat vzlist.txt`;
do

vzmigrate -v --ssh="-p 22" $DESIP $VSERVERID
if test $? -eq 0; then
echo "$VSERVERID completed" >> /tmp/completedlist.txt
else
echo "$VSERVERID failed" >> /tmp/completedlist.txt
fi
done
cat /tmp/completedlist.txt

Now if you want something more custom I’d recommend nixtree they are very good at what they do.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

All the Linux Server Tips and Tricks You’ll Ever Need

Hey there, Linux lovers! If you're a fan of Linux and love tinkering with servers,…

Best Sites To Rent Virtual Servers From

Most of these sites I have used my self to buy virtual private servers from…

What’s the best SSH client

This is tool you will be using to do updates within your linux server. these…