rsync – Web hosting, Domain names, Dedicated servers Fri, 29 Jan 2016 11:05:52 +0000 en-US hourly 1 rsync – 32 32 Server Backup Tips Thu, 29 Jul 2010 23:13:06 +0000 Backing up your server may be the single most important thing you ever do. It could save your websites, your clients, and your business. We have covered quite a few backup issues on this blog. Here is a summary of some important points.

1. Always use a remote backup server. Although there are some benefits to local backup, it will be useless when the entire server crashes.

2. If possible, avoid using your home computer as your backup server. Use a dedicated backup server or lease backup space from a web host.

3. Use rsync or similar program to perform remote incremental backups.

4. Automate the backup process with a cron job.

5. Backup all website files and databases.

6. Periodically test your backups to make sure the process completed correctly.

7. Make sure users or clients also perform their own individual backups for added protection.

Photo Source: Wikimedia Commons

Rsync Incremental Backups Thu, 22 Jul 2010 16:31:33 +0000 Question: How can I easily perform incremental backups on my dedicated server?

Answer: There are few tasks more important than backing up your server. Because of the nature of computers and especially the nature of the Internet, you are bound to have problems. They may or may not cause data loss, but that is not a chance you want to take.

Rsync is a tool that simply syncs the files in one directory with another. What makes it ideal for backups is that 1) it can archive files and compress them and 2) it can use SSH to perform the backups to remote servers.

To run an rsync backup, just execute the command like this:

rsync -avz ~/public_html

This will backup, archive, and compress the files found in public_html on your server. Finally, it will send those archives to the remote server in the directory specified. The best part about rsync is that, the next time you perform a backup, it will only backup the files that have changed (i.e. incremental backups), saving you bandwidth and time.

How to Sync Two Websites on the Same Server Wed, 09 Jun 2010 17:19:03 +0000 network sharing iconQuestion: I have two separate websites that I want to have identical data on each site. How can I do this?

Answer: First of all, to sync files on two separate sites on the same server, you will need to have a user that has write permissions on both sites. If you are using a shared hosting account, and both sites are under your account, you probably already have this. For a VPS that has a unique user for each site, you will need to use the root user.

Next, you need to know the full path to the directories for both sites. For example, site one may be /home/user/www/html/ and site two may be /home/user/www/html/ To sync both directories and keep them synced even when data changes, the best choice is rsync. Although rsync is normally used for remote syncing, it also works for local directories.

To sync the two directories, you would use this command:

rsync -avc /home/user/www/html/ /home/user/www/html/

If you want the sync to be performed periodically and automatically, you can create a script and then drop it into one of the cron directories, such as cron.daily. You can also setup a manual cron job in /etc/crontab. From now on, both sites will show identical information.

Backup Server Files with Rsync Wed, 04 Nov 2009 16:30:40 +0000 backup drive
Few tasks are more important on a dedicated server than backing up crucial data. Many businesses and individuals have suffered financial loss and even emotional breakdowns because they failed to backup their servers.

Rsync is a remote syncing tool that you can use to backup data without needing third-party software. It comes with a ton of options and can be quite overwhelming when you are using it for the first time. But rest assured, there is a large community of Linux users who offer support documents and articles about making backups work for your situation.

Rsync can make use of SSH to securely backup your information. It will also make the backups incremental. This means that rsync will copy new files, found on the server, to the backup destination, but it will only recopy the old files if they have been changed. That way, you are not wasting bandwidth overwriting files that have not changed. For a complete guide to backing up your server with rsync, read this article.