Mobile app version of vmapp.org
Login or Join
Cooney921

: Creating a backup - Rsync - Connection refused (111) I am trying to create a backup of my website for free. I just want to have a backup of my website, including not only all files and

@Cooney921

Posted in: #Backups

I am trying to create a backup of my website for free. I just want to have a backup of my website, including not only all files and the configuration but also the databases. I mean, a full backup. If it can be done automatically, it would be better.

I use Ubuntu on my computer.

I feel there are better ways than using the cpanel to achieve that (actually, I believe sometimes web hosters does not have any cpanel).

I read the following on how to do it:


Automatically mirror the entire contents and configuration of your main server to a secondary backup server on a completely separate network in a different data centre. Use RSync, FXP, cPanel voodoo, or whatever method you wish to automate syncing.


That is why I installed Rsync Daemon which is an alternative to SSH for remote backups. I configured it but the test went wrong. The terminal is showing me this:

pablofiumara@pablofiumara-Lenovo-G470:~$ sudo rsync fiumara@pablofiumara.com::share
[sudo] password for pablofiumara:
rsync: failed to connect to pablofiumara.com (50.87.147.75): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]

pablofiumara@pablofiumara-Lenovo-G470:~$ sudo rsync fiumara@50.87.147.7::share failed to connect to 50.87.147.7 (50.87.147.7): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]


What should I do? Is there a better or easier way to achieve what I wish (I mentioned this in the first paragraph)?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sherry384

Are you sure you don't need key-pair exchanged for this setup ?

ssh is TCP. It needs handshaking as the first and key-pair exchange as the second thing to work (cryptographically secure connection is a necessity in ssh, which is a better version of rsh).
If you think both the hosts are having these things satisfied, it will work on the contrary you are following everything exactly as required.

As a naive example, say, on my Unix/Linux, $PWD, i.e., present working directory, gives me /home and ls -l $PWD spits out a list of things where the first column resembles, for some of the entries somewhat nearby this drwxr-xr-x+ where the d tells us that the corresponding entry is a directory (folder) and coincidentally I want to make a tar (it is not a compressed archive though it is better) for this directory.

I have assumed you have read access for the directories/files you are interesting in taring

Check the value of Access using stat file-name OR stat folder-name when you are in that directory where file-name OR folder-name exist. stat utility should be installed.

Coming back to tar, I will do this:

tar cf any-name-of-tar-file-for-some-folder.tar folder-name


I hope this will be of some assistance.

10% popularity Vote Up Vote Down


 

@Radia820

Looks way over complicated.....

Assuming that your using ubuntu from the sudo commands I see in your log then I'd opt to use MySQLDUMP and Simply downloading the site using FTP.


sudo mysqldump [options] --all-databases
sudo tar cf file.tar /var/www/this/is/the/webhost/path
Then download both the tar file and the databases.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme