rsnapshot: Auto Version Controlled Backup for Unix/Linux/Mac/BSD…

Red Had Enterprise Linux (RHEL) 6. I missed the ease of configuration and all the free tools that people smarter than me have created.

Systems that can take advantage of Rsnapshot

Systems that can take advantage of Rsnapshot

I would like to do a fast post on rsnapshot. I have seen ssh and rsnapshot scheduled in cron to automate backups of OSX to a Linux server. Since we didn’t want the wireless to slow down we only used the physical MAC address of the MAC. What makes rsnapshot so great is that it will wok on so many systems that are out there (Ubuntu, Debian GNU/Linux, Red Hat Linux, Fedora Linux, SuSE Linux, Gentoo Linux, Slackware Linux, FreeBSD, OpenBSD, NetBSD, Solaris, Mac OS X, and even IRIX) .

For now I’m using it for personal automated backups to my external hard drive. There are plenty of other advanced options and examples on the Internet. I just wanted to get out a fast an easy example.

  1. First – find and install rsnapshot. for Red Hat this was
    $ sudo yum install rsnapshot
    (rsynch is a dependancy that should already be installed).
  2. After install if you do not have this file /etc/rsnapshot.conf. Use the command:
    $ sudo cp /etc/rsnapshot.conf.default /etc/rsnapshot.conf
  3. Edit rsnapshot.conf – The defaults I changed from the default configuration file are below. These options allow me to back up everything in /etc/ and /home/. Backups kept will be twice a day, 7 days a week, 4 weeks, 12 months and 5 years (change this as you see fit).  Most important is that switch to make sure that the mount point will not be created and wrote to locally if the disk is not attached.
    1. WHERE TO PLACE BACKUPS
      # All snapshots will be stored under this root directory.
      #
      snapshot_root   /media/myexternal/rsnapshot/
    2. DO NOT CREATE IF DISK IS NOT CREATED
      # If no_create_root is enabled, rsnapshot will not automatically create the
      # snapshot_root directory. This is particularly useful if you are backing
      # up to removable media, such as a FireWire or USB drive.
      #
      no_create_root 1
    3. INTERVALS (make sure this is tabbed – do NOT use spaces)
      #########################################
      #           BACKUP INTERVALS            #
      # Must be unique and in ascending order #
      # i.e. hourly, daily, weekly, etc.      #
      #########################################
      interval        hourly  12
      interval        daily   7
      interval        weekly  4
      interval        monthly 12
      interval        yearly  5
  4. Time to configure cron. Most people will tell you to create your jobs using $ crontab e
    I prefer to use the root crontab using $ sudo vim /etc/crontab shown below:

    0 */12 * * * root /usr/bin/rsnapshot hourly # Every 12 hours
    30 23 * * * toot /usr/bin/rsnapshot daily   # Daily at 11:30PM
    20 2 * * 0 root /usr/bin/rsnapshot weekly   # Sunday at 2:20AM
    10 5 1 * * root /usr/bin/rsnapshot monthly  # First day of the month at 5:10AM
    01 8 1 1 * root /usr/bin/rsnapshot yearly   # January 1st at 8:01AM
  5. Test It – Following these steps you should have the basic setup needed to run rsnapshot on your personal computer to an external hard drive or usb. Just one last thing to do. Make sure that your hard drive is plugged in and  run:
    $ sudo rsnapshot -V hourly
    rsnapshot should give you plenty of verbose information as it creates your first hourly backup inside the location you specified. If there is a issue with the lock file, remove the lock file and try again.

Still stuck?

There are many other helpful documents out there  start with the rsnapshot how to:
http://www.rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html#installation

If you want to learn how to do remote backup and use OSX? try this article:
http://blog.philippmetzler.com/?p=138

As I said in the beginning of this article, this was a fastpost and not meant to cove everything about rsnapshot. It took longer to write this article than it did to set up rsnapshot.
Good Luck – Adam M. Erickson

 

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

Develope a Web Based CMS Using PHP

Download this File Here

Abstract
The Content Management System (CMS) is a web based application using a Linux Server,
Apache Web-server, MySQL Database, and PHP Programming Language (LAMP). The
objective of managing users, and information in any given network environment can only be
hindered by the creativity of an information technology professional and not by technology. The
main objective of this thesis is to develop the early development steps of a LAMP software bundleCMS. By creating the
building blocks for developing, and taking into consideration basic methods for creating the core
platform of a CMS for further development. All information gathered, and experience gained will
assist with developing and offering my own personal e-commerce business solutions in the future
and to obtain additional business and practical knowledge in an open source software and ecommerce.
Continue reading

Geographic Systems in Business

Geographic Information System (GIS) started out as just a proprietary system that used its own standards into a position of using technology standards and technology-based standards to be accepted by the IT community as another form of information technology that could help manage business. It has become one of the newer emerging Business Intelligence (BI) areas that, “has now become a full IT system for integrating all sorts of scientific and geographic information into all human activities” (Mitchell, 2009, p. 2).

[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”]

GIS layered

Geographical Information Systems

A GIS implements computers to capture data on all forms of geographical referenced information and manages the data for analyses. Visual data produced by GIS systems can be used to show relationships, patterns and trends by reports that can either be shown on a map or in standard reports, graphs and charts. Several available programs can be obtained for free from sites, like opensourcegis.org, to incorporate into businesses Enterprise Resource Planner (ERP) to help develop a company’s business strategy/plan in banking, insurance, logistics, media, real estate, and retail. Corporations are not the only organizations that can/have benefit from a GIS. Government, educational and science, environment and conservation, natural resources and utility organizations can also benefit from implementing geographic information systems to learn best practice by collecting data dealing with Geo-location problem solving. “GIS is a powerful analytical tool. Its benefits to underwriting management are many, in helping to better underwrite risk and control hazardous and catastrophic exposures” (Picture, 2005, p. 10).
Benefits of GIS in BI has evolved to the point were we do not need to know who did what when and why but also solved the 5th piece of the puzzle, where it happened, also known as spatial technology. Gis.com describes several different uses that can be implemented using GIS. The basics of how GIS can be used is to map features on a map and to find patterns on how those features change to make better decisions in market research, by using quantities as a reference with location businesses in sales can easily be informed were there target market is located and which locations on a map have the highest densities for a chosen market segmentation. An additional feature is the ability to shift the location information by time and distinguish patterns in time. A good example would be how meteorologist use GIS to track global trends in weather in order to better predict weather in the future. The realization of how well GIS can help in business is apparent when global organizations like the World Bank make it a priority to “help countries develop national statistical capacity and help mobilize the expertise of the international statistical system” (World, 2011, para 2).
Data collection used for plotting points on a map use to mainly involve businesses questionnaires and government censuses were the primary way to collect data could be inaccurate because of the many steps it takes before the data is digitized and you still had to account for human error. The quality of data was not as accurate as current resources being applied today through smart phones, and other forms of computers that are connected to the Internet and constantly report location through the use of Internet Protocol (IP) addresses. Addition the use of Radio Frequency Identification (RFID) chips, satellites, scalable maps, aerial-photography and Global Positioning Systems (GPS), Geo-tagged pictures, and just about anything that moves have also been tied in with GIS to allowed for tracking of data that can be placed on a map with more accuracy through automation. Time accuracy of data is another quality issue that needs to be addressed. The world is always changing, you usually wouldn’t use last month’s weather report to go on a motorcycle ride, or you friends address from 20 years ago to send a post card. It is important to make sure that the data being used is up to date before making critical businesses decisions on it also.
Challenges and risks of deploying any BI environment process or tool are the same as it has been to deploy any form of decision making platform in the past several decades. Wither implementation is constrained by technical ability, human and financial resources or just the lack of coordination throughout an organization. There are traditional legalities being added to cover privacy rights as more and more Geo-data about consumers is being disseminated throughout the world. Privacy rights are being circumvented by added small disclosure rights to most software that has to be accepted before you can use a service providers services. One way an organization can save resources is to implement low cost external data that is readily available by companies like Google maps but it is a patchy solution and potentially could not be available in the future.
As a BI consultant I would recommend the use of geographic information for any larger company, in any industry, the larger the company the greater the needed to track spacial information in order to reduce risk in decision making. The technology in GIS has developed to the point were anyone can access the Internet and get a general view of spacial data for underwriting, man-made, environmental, infrastructure, facilities and especially in businesses were the sales by location can provide better information on policyholder, and can target potential clients.

References
A Picture is Worth a Thousand Words! (2005, December). Canadian Underwriter: Insurance Technology Guide 2006,10. Retrieved April 17, 2011, from ABI/INFORM Global. (Document ID: 974623161).
Mitchell, R.. (2009, July). Jack Dangermond. Computerworld, 43(24), 13-14. Retrieved April 17, 2011, from ABI/INFORM Global. (Document ID: 1821176221).
World Bank Aids Tanzania to Improve Quality of Statistical Data and Information. (2011, March 26). The Pak Banker. Retrieved April 17, 2011, from ABI/INFORM Global. (Document ID: 2302228461).

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]