Little rsync Primer part I
Okay, so you want to do backup , you're using ;)
You may want to give rsync a try.
If you do not know what rsync is i suggest you might read:
I'm not gonna go into the details of installing. Use your package management system. Compile and Install it from Source. The Homepage tells you how to do it.
So let's get to the basics.
rsync { Options } { USER@HOST:SOURCEPATH } { DESTINATIONPATH }
This will copy the stuff from user@host:/sourcepath to the DESTINATIONPATH
This basically means you can copy remote files to the local disk.
You grab your daily copy of whatever. Basically: You are PULLING a backup.
rsync { Options } { SOURCEPATH } { USER@HOST:DESTINATIONPATH }
This will copy the contents of the local directory to the given path at the given host, using the given username.
So you are PUSHING your backup.
examples would be:
(I will leave the options out for now)
rsync { Options } /var/www/mywebsite1 backup@www.my-backuphost.com:/home/backup/daily.backup
rsync { Options } backup@my-database-server.org:/root/databasedumps /root/backups/my-database-server.org/database-dumps