New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to move data from one vps to another vps using rsync
Hello,
I want to move data from one vps to another vps using rsync and following this tutorial
https://lowendbox.com/blog/how-to-migrate-a-hosted-server-in-5-easy-steps-with-rsync/
but when i execute command mentioned there.
it throws error
Unexpected remote arg: root@SRC-IP:/*
rsync error: syntax or usage error (code 1) at main.c(1348) [sender=3.1.0]
anyway to fix that?
Comments
It is possible your versions of rsync are different.
I personally run:
Further, the guide listed is for migrating the whole VPS and not just a few bits of the data.
change root@SRC-IP to what you use in the other vps
@ehab, i am already doing that
oky, one last comment from me is remove * and see what happens.
@Mun
both using
rsync version 3.1.0 protocol version 31
@ehab, same error
however if i remove last '/' its connecting
but console is like
@Mun,
Actually i want to move complete vps data (i.e. moving from one provider to another)
thats why following that guide.
you probably got lost by copy and pasting that command. those have to be double dashes for the exclude options, like --exclude=
Thank you so much @Falzo
that did the trick
Hope someone put rm -fr somewhere there
lol
You're just being evil. And a horrible person
yup, I am
If you are using OpenVZ, ask your provider if they can help you with vzdump, or the qcow2 file if KVM.
@elgs i got it running with rsync with help of Falzo comment
I wish, there is an option for post starter to close/lock thread.
@jarland
We don't have enough activity here to lock threads every time someone decides they're done with a conversation :P
It's not my birthday today
leave rsync
Follow this steps,
Compress zip with encryption
zip -e -r Urzipname.zip files
So,
zip -e -r let.zip *
It will ask for password
Move to via http or ftp
Http:
Put following file my code
Mv let.zip /htdocs
And in remote vps get file via wget
Ftp: (my suggestion)
Put zip in ftp accessible folder
And get that file via wget
Wget url will be like
ftp://username:[email protected]/let.zip
It is way more secure.
Hope it will help you
Thank You!
VP-
Rsync is far more secure than FTP, since FTP sends all data as plaintext, while rsync is encrypted.
You will be frustated if there is not enough space when your compress progress at 99%
Well, that's true but I try to come up with alternative methods.
Yes, it's annoying
What? You have no idea what you're talking about @vishalpatelz. You say FTP is more secure, when it is obviously not. Then once called out on it, you claim you know but are just offering alternative solutions.
Your alternative method sucks dude. Rsync is a lot more efficient and secure than your method. I hope to hell you aren't posting this to increase your post count and turn into a provider.
Edit: My apologies, I looked into it and it doesn't appear to be that way. You just need to find smarter alternatives for your solutions. :P
Where is rm -rf / ?
That encrypts the FTP transfer AND makes it go faster, amirite? ( ͡° ͜ʖ ͡°)
ETA: don't actually use that command unless you know how to use it properly...
Thanks.
Dude rm is for remove and rm -rf for remove forcefully so don't use it will delete your data.