Multimedia & Design

All About Technology
login.php forums_m.php?mode=register faq.php memberlist.php search.php yuvzweb.html




Multimedia & Design Forum Index » GENERAL DISCUSSIONS » VPS backup to HDD
Post new topic  Reply to topic View previous topic :: View next topic 
VPS backup to HDD
PostPosted: Thu Jun 27, 2013 10:49 am Reply with quote
dhanal
Joined: 27 Jun 2013
Posts: 5




Hey guys, I just have a quick question, since all of you are smart with this type of stuff.

I own a VPS, and I because I have alot of information on there, I want the backups to run via my HDD. Is this possible?

_________________
cheap vps
View user's profile Find all posts by dhanal Send private message
PostPosted: Mon Sep 02, 2013 6:47 am Reply with quote
vpswebserver
Joined: 02 Sep 2013
Posts: 1




You can do this fairly easily with a little work in shell:

1) Connect via ssh to your VPS using your preferred client
2) Become a superuser

Quote:
sudo su

or

Quote:
su -


3) Change to the root directory of the machine:


Quote:
cd /


4) Run the following command to backup the system to a compressed file

Quote:
tar -cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/sys /


5) Move the backup file to your user directory (replace {USER} with your username)

Quote:
mv backup.tar.bz2 /home/{USER}/backup.tar.bz2


6) Change ownership of the backup file to your user

Quote:
chown {USER} /home/{USER}/backup.tar.bz2


7) Exit superuser

Quote:
exit


Cool Exit your shell connection

Quote:
exit


Now you just need to get the file to your local machine, I'd recommend either using ftp or scp for this.

Best Regards
vpswebserver.com, Best Vps Provider
View user's profile Find all posts by vpswebserver Send private message
ForumsLand.com
PostPosted:  
Free Forum




VPS backup to HDD
Multimedia & Design Forum Index » GENERAL DISCUSSIONS
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  


Powered by phpBB © 2001-2004 phpBB Group
Designed for Trushkin.net | Themes Database