|
Posted: Thu Jun 27, 2013 10:49 am |
|
|
| 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? |
|
|
|
|
 | |  |
Posted: Mon Sep 02, 2013 6:47 am |
|
|
|
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
or
3) Change to the root directory of the machine:
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
Exit your shell connection
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 |
|
|
|
|
Posted: |
|
|
|
|
| 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
|
|
|
|
|