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.
Comments
Hello, you can perform a snapshot on some platforms but i recommend to use a third party like r1soft.
If its KVM, then this is what you want:
http://www.delimitervps.com/landingpage/r1backup/
You can take a backup of mysql data, etc and move it.
If you want a backup of your whole VPS then contact your provider and they will do this for you.
What about dd'ing the entire hdd to another device?
With OVZ you can simply rsync.
if you do have 25GB VPS size, it will take quite a while to backup via shared 100Mbps port. You can do snapshot of your VPS account, if your provider support it.
Nyr can you be more specific?
How?
Mr. Google can be more specific, just type in "rsync vps backup".
i thinck your provider if is good guy can help you too to give you a full image
dd and ssh like @faulwurf mentioned?
As root,
Alternately do
mkisofs /
instead ofdd
EDIT: mkisofs may barf on proc, sys or dev filesystems.
doing this
dd if=/dev/vda | gzip -1 - | ssh [email protected] dd of=image.iso.gz
give me a error
opening /dev/vda: No such file or directory
shoul I do only /dev instead dev/vda?
dd if=/dev | gzip -1 - | ssh [email protected] dd of=image.iso.gz
Check
fdisk -l
(or equivalent, whatever) and replace accordingly.Do
mount | grep ext
to find out your device. If you see exactly one line, then use that - most likely/dev/sda
or/dev/sda5
. Otherwise, you have multiple partitions and it gets more complicated, and this method wont work as-is.You would need to be root when executing this command, but dont need root access on destination/backup VPS. So you could
ssh [email protected]
.Or, if your provider uses SolusVM, ask them to enable quick backups. It'll create a vzdump and place it into your VPS. (OpenVZ only, I think)
I have done
mount | grep ext
but didn't gave me outputTry "fdisk -l" for a list of HDDs and their partitions.
I have done
fdisk -l
but didn't gave me output as wellAs root? It has to run as root. Should work on KVM. OpenVZ has no real HDD so it would probably show nothing.
ok... it's a openvz
Just to confirm: I've run "fdisk -l" on a small development VPS on my OpenVZ node and it returns nothing. The reason is as mentioned about that OpenVZ has no real HDD neither any real partition.
So if you use dd you most likely have to specify the root as your directory (the root is " / ") with a OpenVZ VPS because there are no existing hard drives or partitions in /dev.
dd if=/ | gzip -1 - | ssh [email protected] dd of=image.iso.gz
tried... but just have copied 20bytes
dd
only works if you have access to the raw device. It's not going to work on OpenVZ. You will need support from your provider if you want a raw dump, like others have suggested. Or go forrsync
for backing up your files.https://github.com/willgrz/Autobackup
not very expert on this... sorry
any help to install and run it on a openvz vps?
Backing up the whole / makes no sense anyway. There are things that can't be backed up and simply shouldn't be backed up.
Try https://freevps.us/thread-11060.html?highlight=backup
You only need Tar and SSH on the source server, then create a file with the data of this server like here:
https://github.com/willgrz/Autobackup/blob/master/serverlist.template
Then run bash backup.sh on the backup server.