[resolved] Simple Backup question
I have installed simple backup, and setup FTP back to a machine at home.
When I ftp to the machine from terminal its successful
root@li210-90:~# ftp dynamite.net.nz
Connected to dynamite.net.nz.
220-FileZilla Server version 0.9.36 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
Name (dynamite.net.nz:root): vm-ubuntu02
331 Password required for vm-ubuntu02
Password:
230 Logged on
Remote system type is UNIX.
ftp>
simple backup config file:
target=ftp://vm-ubuntu02:password@dynamite.net.nz
root@li210-90:~# sbackupd
E: Target directory is not writable - please test in simple-config-gnome!
root@li210-90:~#
target is writeable, its used for my onsite ubuntu's backup.
5 Replies
root@li210-90:~# ftp dynamite.net.nz
Connected to dynamite.net.nz.
220-FileZilla Server version 0.9.36 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
Name (dynamite.net.nz:root): vm-ubuntu02
331 Password required for vm-ubuntu02
Password:
230 Logged on
Remote system type is UNIX.
ftp> cd temp
250 CWD successful. "/temp" is current directory.
ftp> put "/etc/php5/apache2/php.ini" "php.ini"
local: /etc/php5/apache2/php.ini remote: php.ini
200 Port command successful
150 Opening data channel for file transfer.
226 Transfer OK
69463 bytes sent in 0.91 secs (74.3 kB/s)
ftp>
The simplest approach is to schedule a rsync on your home PC. This will avoid firewall issues (as you wont need to open that port on your router, since it wont be accepting incoming connection, but rather making outgoing connections). There are a lot of methods that would allow you to very bandwidth-efficiently do this as well, by only copying files that have changed or been updated, and only transfer those changes. Using another script, you can duplicate the folder each time after rsync to have a full archive of backups on your cheap, home storage.
Just a suggestion
This method is also more secure in another sense, in that if ever your server becomes compromised, the attacker wont have full information to connect to your home computers. By doing things this way, your computer always initiates the connection and your server doesn't even need to know it exists, leaving your home network secure.
Re ftp and security - I know how bad security is with ftp - in my home firewall I allowed ftp from my linode ip only.
Again, thanks for the help!
@modcar:
Thanks for that info, I will have a look into that, because webmin doesn't support incremental backups across ftp / ssh
Re ftp and security - I know how bad security is with ftp - in my home firewall I allowed ftp from my linode ip only.
Again, thanks for the help!
True, but if ever your linode becomes compromised, they could just tunnel their way right around your firewall
Good luck, though. A reliable backup solution is well worth the invested time.