Linux Remote Backup via rsync Tutorial

Linux Remote Backup via rsync Tutorial

Linux Remote Backup via rsync Tutorial

A couple of days ago, with Linux Backup via rsync Primer Tutorial as shown below, we used the Linux command “rsync” backup a local disk to a removable disk on a MacBook Pro laptop using a USB connected Seagate Backup Plus Portable Drive.

Today we use that same USB connected Seagate Backup Plus Portable Drive and the same MacBook Pro laptop, but backup a directory (or folder) on a remote web server … the www.rjmprogramming.com.au Linux CentOS web server, to be precise.

The technique used, and great information for this, again, came from Linux.com’s useful link, so thanks for that. These techniques involve the use of ssh (Secure Shell) which we have talked about at this blog with Web Server Access Primer Tutorial. We use ssh a lot to login (the way you might do with telnet) to our www.rjmprogramming.com.au web server, and here it is helping out “rsync” in an “sftp” feeling way.

To backup remotely, if not too much of a load for the live web server, offers great possibilities for piece of mind for the webmasters involved, as you can imagine.

Lately, options related to backup to the “cloud” are becoming more common, and this is an option too, though tend to think it is better to only involve local resources as the backup media.

We think the advantages of using a Linux method of backing up on a Macbook Pro laptop include …

  • Linux processes are not in your face … while you get on with other things in the usual GUI environment
  • able to be run at a time of your choosing (via shell scripting with crontab, or at login via a .profile arrangement, perhaps), even interactively … though Time Machine can do some of this too
  • the backup can run in the background … though Time Machine can do this too
  • the backup process could easily leave you a log
  • Linux backups are capable of handling remote backup tasks and scenarios

… so today’s discussion helps with that last idea in the list above in two parts …

  1. the original remote backup example
  2. ongoing incremental remote backup example

Previous relevant Linux Backup via rsync Primer Tutorial is shown below.

Linux Backup via rsync Primer Tutorial

Linux Backup via rsync Primer Tutorial

On a Macbook Pro laptop you can use the Mac OS X Time Machine approach to backing up your data, as we talked about with Mac Backup Tutorial. However, a Mac OS X laptop has access to an underlying Linux operating system, that has had great software, including backup software, written for it over many years.

What would be the advantages of using a Linux method of backing up on a Macbook Pro laptop? Can think of …

  • Linux processes are not in your face … while you get on with other things in the usual GUI environment
  • able to be run at a time of your choosing (via shell scripting with crontab, or at login via a .profile arrangement, perhaps), even interactively … though Time Machine can do some of this too
  • the backup can run in the background … though Time Machine can do this too
  • the backup process could easily leave you a log
  • Linux backups are capable of handling remote backup tasks and scenarios

Today’s slideshow presentation starts off with a photo of our …

  1. … Seagate Backup Plus Portable Drive β„Ή hooked up to our Macbook Pro via a black USB lead plugged into one of the Macbook Pro USB ports
  2. we start up the Macbook Pro application called Terminal in the Utilities folder of the Applications folder
  3. the Linux command

    df -k

    will show you the disks and removables (of which our Seagate Backup Plus is one), the latter of which normally get a name starting with “/Volumes/” as for our “/Volumes/Laura”

  4. we are going, today, to backup the local MAMP server to the Seagate Backup Plus via

    rsync -r /Applications/MAMP /Volumes/Laura/

    as you can see with β„Ή (and on)

  5. now to indicate some success with this to you, we turn the Firefox web browser to Open File one of the backup HTML files (because it is a step too far to think you will be able to run PHP from the backup disk … perhaps tomorrow) … maybe you remember india_map.html from the series of blog postings ending with PHP Geographical Image Map Yet More Google Charts Tutorial ? … you can see with β„Ή
  6. okay, that works, and so now, what about if india_map.html changes back at the Macbook Pro hard disk’s MAMP’s htdocs folder … we make a change to the <h1>India</h1> heading to <h1>India Map</h1>
  7. so now we are going to incrementally backup the local MAMP server to the Seagate Backup Plus via

    rsync -ruv /Applications/MAMP/ /Volumes/Laura/MAMP/

    as you can see with β„Ή

  8. now to indicate some success with this to you, we turn the Firefox web browser to Open File that same india_map.html HTML file … as you can see with β„Ή

Of course, as with all Linux a

man rsync

command β„Ήβ„Ή helps explain things further, and we hope this tutorial and Linux.com’s useful link is of some help for you too.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Networking, Operating System, Tutorials and tagged , , , , , , , , , , . Bookmark the permalink.

21 Responses to Linux Remote Backup via rsync Tutorial

  1. Paul Hanser says:

    I’ll immediately grab your rss as I can not find your email subscription hyperlink or e-newsletter service. Do you have any? Kindly permit me understand in order that I may subscribe. Thanks.

  2. Peter says:

    CzeΕ›Δ‡, super rozdziaΕ‚. JakiΕ› czas nie widziaΕ‚em tak ciekawego pisarstwa.

  3. Couldn?t be created any much better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this report to him. Pretty certain he will possess a very good read. Thanks for sharing!

  4. I had been honored to obtain a call from a friend as he identified the critical guidelines shared on the web site. Browsing your blog post can be a real amazing experience. Thanks again for thinking of readers like me, and I hope for you the best of achievements as being a professional discipline.

  5. Car Interior says:

    Thank you, I have recently been looking for info about this topic for a long time and yours is the greatest I have discovered so far. But, what about the conclusion? Are you positive concerning the supply?

  6. I like this web site very much, Its a genuinely nice situation to read and get information .

  7. MicroStar says:

    Thanks , I have recently been looking for information and facts approximately this topic for a even though and yours could be the most effective I have identified out so far. Nevertheless, what about the bottom line? Are you positive regarding the provide?

  8. I’m definitely enjoying the design and layout of the weblog. It’s an extremely easy on the eyes which tends to make it a great deal far more pleasant for me to come here and take a look at extra frequently. Did you hire out a developer to produce your theme? Great perform!

  9. I must convey my appreciation for your kind-heartedness giving support to folks that must have guidance on this important subject matter. Your real commitment to passing the solution all-around appeared to be really interesting and has in every case encouraged many people just like me to achieve their objectives. Your entire warm and helpful information entails much a person like me and still more to my mates. Warm regards; from everyone of us.

  10. You made some decent points there. I did a search on the issue and found most persons will go along with with your website.

  11. I concur, this web site is really interesting and we got a concept of this certain subject. I never ever thought that I could possibly find this website. I want to apply this in my life. Many thanks for this as well as wish you will certainly create even more similar to this one.

  12. Fence Panel says:

    I like what you guys are up also. Such smart work and reporting! Keep up the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my site :)

  13. Nouf Taraman says:

    This is the sort of information IÒ€ℒve long been in search of. Thanks for posting this data.

  14. Vid Pro says:

    I do feel all on the concepts you’ve got introduced within your post. They’re very convincing and will definitely work. Nevertheless, the posts are extremely quick for newbies. May just you please extend them a bit from next time? Thank you for the post.

  15. Glad to be 1 of several visitants on this incredible internet internet site : D.

  16. you use a amazing weblog here! do you need to make some invite posts on my blog?

  17. Save says:

    My personal web searches seem complete.. thanks. Very beneficial perspective, thank you for posting.. Take pleasure in the posting you provided.. Enjoying the blog post.. many thanks

  18. Jewel says:

    Isn’t it fantastic once you obtain a great article? Is not it good any time you discover a very good publish? So content to have identified this submit.. So content to have found this submit..

  19. hello!,I like your writing very so much! share we keep in touch extra approximately your post on AOL? I need an expert on this space to resolve my problem. Maybe that is you! Having a look forward to look you. |

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>