Portal Home > Knowledgebase > Articles Database > How to backup data?
How to backup data?
Posted by Riverman, 07-14-2008, 11:41 AM |
Hi,
I have a dedicated linux server that is using plesk, I need to make a complete copy of all the files (4GB) to my local pc, if I use FTP it will take days to download, if I use the plesk backup tool it will backup to a file that my pc cant read/open. Is there an easy way (I have no experience in systems admin) that I could compress all the files on the server to a .tar,.rar or .zip file and then just download that one complete file to my pc?
Thanks for any help
|
Posted by WebbyCart, 07-14-2008, 11:44 AM |
Hi,
You can use tar command to compress your files/directories, and just place the compressed file in one of your web directories and download it to your pc.
Bobby
|
Posted by Riverman, 07-14-2008, 12:31 PM |
Could you give me exact instructions on how to do this?
|
Posted by ISPserver, 07-14-2008, 12:33 PM |
And after you can find file my_backup.tar.gz in current directory.
|
Posted by Riverman, 07-14-2008, 12:49 PM |
I am not a programmer could you be a bit more specific on how to run that command?
Thanks!
|
Posted by ISPserver, 07-14-2008, 01:02 PM |
You need ssh access to server. Use any ssh-client to connect with server.
see to http://www.seas.ucla.edu/seasnet/Docs/ssh/windows.htm
Type you server ip or domain. And username with password.
|
Posted by simonapnic, 07-14-2008, 04:54 PM |
As ISPServer mentioned, you'll need to SSH to your dedicated server, but you're familiar with that I guess.
As for backing up Plesk, go to its directory using the cd command.
Once you are there, [b]tar czf BACKUP.tgz and you should be done.
Example: tar czf myfiles.tgz /home/user/files/
For more information about using the tar utility, use man tar.
Also, here's an useful guide about backing up Plesk:
http://dancameron.org/pages/how-to-backup-plesk
|
Posted by Riverman, 07-14-2008, 07:41 PM |
Does this look correct?
tar -zcf backup.tar.gz/var/www/vhosts/mydomain.com/httpdocs/
So I just need to connect via SSH, and enter the above line and hit enter?
Then will the .tar file be visable via ftp in the root dir?
Is there any sofware available that i could use to avoid having to use SSH?
|
Posted by Riverman, 07-15-2008, 12:34 PM |
I tried this and got the following error message:
tar: Cowardly refusing to create an empty archive
any ideas what now?
|
Posted by The Universes, 07-15-2008, 12:37 PM |
Did you have a space between the .tar.gz and /var/www.
|
Add to Favourites Print this Article
Also Read