Using Grsync with Ubuntu Presented by Dave Mawdsley, DACS Member, Linux SIG August 20, 2008 (making rsync easy with a memory key or a server)

Slides:



Advertisements
Similar presentations
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Advertisements

Backups In Linux. The Linux System Many Linux distros set up seperate "/home" and "/" (root) partitions. User configuration files are hidden with a "."
ITE PC v4.0 Chapter 1 1 Operating Systems Computer Networks– 2.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Lab 03 Windows Operating Systems (Cont.). PYP002 Preparatory Computer ScienceWindows Operating System2 Objectives Develop a good understanding of 1. The.
Computer Forensics Principles and Practices by Volonino, Anzaldua, and Godwin Chapter 6: Operating Systems and Data Transmission Basics for Digital Investigations.
Installing software on personal computer
Guide to MCSE , Enhanced 1 Activity 10-1: Restarting Windows Server 2003 Objective: to restart Windows Server 2003 Start  Shut Down  Restart Configure.
U3A 1 How To Backup CD/DVD, Memory Stick, Memory Card, 2nd hard drive, auto.
Ch 11 Managing System Reliability and Availability 1.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Linux Operations and Administration
Computer Concepts 2013 Chapter 4 Operating Systems and File Management.
Chapter Three OPERATING SYSTEMS.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Back to content Final Presentation Mr. Phay Sok Thea, class “2B”, group 3, Networking Topic: Mail Client “Outlook Express” *At the end of the presentation.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Tutorial 11 Installing, Updating, and Configuring Software
©Kwan Sai Kit, All Rights Reserved Windows Small Business Server 2003 Features.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
Chapter Fourteen Windows XP Professional Fault Tolerance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Managing, Organizing and Finding Files, Information, Shared Folders and Offline Folders powered by dj.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
LING 408/508: Programming for Linguists Lecture 3 August 31 st.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
Otasuke GP-EX! Chapter 11 GP-Viewer EX
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
2BrightSparks POWER WITH EASE Sync Back SyncBack SE.
StorCenter ix4-200d Training By Erik Collett August 2009.
Getting to Know Your Computer Your File System Applications What’s running on your machine Its own devices Networking.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
Lesson 3: Migrating and Configuring User Data
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member
Notes on Backups Presented by Dave Mawdsley, DACS Member, Linux SIG Member a look at priorities and simple backup methods.
ICAICT201A USE COMPUTER OPERATING SYSTEM. USING THE CONTROL PANEL The Control Panel contains many options for configuring your computer, including: adding.
Back it up – Don't be a fool!
Presented by Dave Mawdsley, DACS Member, Linux SIG Member
Presented by Dave Mawdsley, DACS Member, Linux SIG February 20, 2013
Using Crontab with Ubuntu
Overview of Linux Fall 2016 Dr. Donghyun Kim
SQL Replication for RCSQL Reporting
Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member
Introducing, Installing, and Upgrading Windows 7
Getting Started with Application Software
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Presented by Dave Mawdsley, DACS Member, Linux SIG Member
Guide to Linux Installation and Administration, 2e
Chapter 11 Command-Line Master Class
BIF713 Managing Disk Space.
Using pktstat with Bash
Getting SSH to Work Between Computers
Using Clam Anti-Virus with Ubuntu
Microsoft FrontPage 2003 Illustrated Complete
Windows Operating Systems (Cont.)
Networking for Home and Small Businesses – Chapter 2
Networking for Home and Small Businesses – Chapter 2
Software - Operating Systems
Windows Operating System
Presentation transcript:

Using Grsync with Ubuntu Presented by Dave Mawdsley, DACS Member, Linux SIG August 20, 2008 (making rsync easy with a memory key or a server)

What are rsync and Grsync? rsync is an open source utility run using a CLI (command-line interface) ‘terminal’ providing a fast, synchronized file transfer. rsync is freely available under the open source GNU GPL license. Wayne Davison is the current maintainer. Grsync is a GUI (Graphical User Interface) for rsync writing the required CLI command automatically. It makes use of the GTK libraries and is also released under the GPL license. While Grsync doesn't support everything in rsync’s options list, Grsync can effectively be used to synchronize local directories and supports remote targets in a limited way (read: manual). People may use grsync to synchronize their music files with removable devices or to backup files to a networked drive. It is made by OPByte Software. 1

How might rsync be used? Rsync might be used to make a directory backup from a computer to a memory key or external hard disk drive. ( no SSH needed ) Rsync might be used to make a directory backup from a computer to a server within a LAN (local area network). ( SSH required—the server presents a password screen ) ComputerRouter Server Computer Memory Key 2

Use Grsync with a Memory Key. If Grsync is not installed yet, open a terminal session and type the following: sudo apt-get install grsync Insert the memory key or external hard drive into the USB slot. Start Grsync from Applications > Internet in Ubuntu. Use the Browse buttons to locate the Source and Destination directories. Check the box for “Copy symlinks as symlinks.” Click on “Simulation” to test, and “Execute” to do the backup. Computer Memory Key 3

Use Grsync with the Memory Key. My computer had the following Source: /home/madmod/Documents/ My memory key had the following Destination: /media/disk/Documents/ Effectively Grsync used the following rsync command: rsync -r -t -p -o -v --progress /home/madmod/Documents/ /media/disk/Documents/ Computer Memory Key 4

5

Use Grsync with the Server. It’s assumed that Grsync is installed on the computer. OpenSSH has to be installed on both the computer and the server. To do this on each, open a terminal session and type the following: sudo apt-get install openssh-server At the session on the server, type ifconfig to identify the IP address of the server. Log into the router and set the server’s IP address in the static address table—so it’s location can be guaranteed with Grsync. ComputerRouter Server

Use Grsync with the Server. Make sure that the server is running on the LAN. Start Grsync on the computer from Applications > Internet in Ubuntu. Use the Browse buttons to locate the Source and Destination directories. The Destination is a bit harder this time because it will include the server’s IP address. Below, click on the “Advanced Options” tab and in the box type: -e ssh (Note: in command mode it should be -e “ssh”) ComputerRouter Server

Grsync to the Server from Check the box for “Copy symlinks as symlinks.” Click on “Simulation” to test, and “Execute” to do the backup. My computer had the following Source: /home/madmod/Documents/ My server had the following Destination: :/home/madmod/MadMod-Laptop-Backup/Documents/ Effectively Grsync used the following rsync command: rsync -r -t -p -o -v --progress -l -e “ssh” /home/madmod/Documents/ :/home/madmod/MadMod-Laptop-Backup/Documents/ ComputerRouter Server

9

Using the Simulation Button 10

Pro’s and Con’s of Grsync & rsync Pro’s of Grsync: It’s easy to use and it has various options with a simple GUI. No coding of rsync is needed as Grsync does it all. Information about the sync or failure is given. Con’s of Grsync: It must be manually run from either a computer or a server. It applies only to folders. (a minor problem really) It applies only to static IP addresses inside a LAN. (also a problem with rsync) Pro’s of rsync: rsync has more capabilities than Grsync. rsync can be run as part of a Bash script or crontab job (scheduled command). Con of rsync: The coding is not intuitive and is unforgiving of mistakes. Reasons for errors are not given. The path to the folders is problematic. 11

Backup Script on #!/bin/bash ############################################# # MadMod Computing 07/27/08 # # rsync Network Computers to the Server - # # Documents on MadMod-Desktop Computer # # Documents on MadMod-Laptop Computer # ############################################# clear # # Backup of Documents on the MadMod-Desktop Computer to the Server # Replace older files with newer ones; add new files and folders rsync -r -t -p -o -v --progress -l -e “ssh” :/home/madmod/Documents/ /home/madmod/MadMod-Desktop-Backup/Documents/ # echo " " # Backup of Documents on the MadMod-Laptop Computer to the Server # Replace older files with newer ones; add new files and folders rsync -r -t -p -o -v --progress -l -e “ssh” :/home/madmod/Documents/ /home/madmod/MadMod-Laptop-Backup/Documents/ # echo " " exit 0 12

Rsync Command Details rsync -r -t -p -o -v –progress -l -e “ssh” :/home/madmod/Documents/ /home/madmod/MadMod-Laptop-Backup/Documents/ -r [--recursive] recurse into directories. -t [--times] transfer modification times along with the files and update them on the remote system. -p [--perms] causes the receiving rsync to set the destination permissions to be the same as the source permissions. -o [--owner] preserve owner (super-user only) of the destination file to be the same as the source file, but only if the receiving rsync is being run as the super-user. Without this option, the owner is set to the invoking user on the receiving side. -v [--verbose] increase verbosity option stands for verbose and shows you what’s going on. -l [--links] copy symlinks as symlinks. -e “ssh” invoke ssh with login on the remote computer. 13

Concluding Remarks Syncing with rsync or Grsync means that newer same-named files overwrite older ones, while new files and sub-folders are copied to the destination. Grsync has a feature to exclude unwanted folders from the synchronization. Grsync has a feature that allows actions to occur just before the sync. Restoring folders from a backup is about as simple as reversing the source and destination in Grsync. Grsync has a reverse feature—to swap the two. rsync has an extensive man page which shows the many features it is capable of. Excluding folders from the rsync command is also possible and useful. rsync doesn’t have a simulation mode as far I know. So practice with unimportant folders first. Make sure that the sync works properly, then substitute the paths and folders that should be used. Restoring folders from a backup requires reversing the source and destination folders in rsync. Be sure to put a single space between them in the rsync command. Rsync is ideal for inclusion in a Bash script with many tasks to do. Crontab allows for automated timed/dated rsync commands. (another topic) Ubuntu has a backup and restore scheme must be manually run from either a computer or a server. The backup uses a tar archive that is a full backup rather than a sync. Full backups can take lots of time. Syncs are very quick. 14

Login required from ,10 15

Screenshot of my server's desktop using vncviewer from my notebook's desktop

Concluding Remarks Screenshot of my notebook's desktop

Using Grsync with Ubuntu This OpenOffice.org Presentation 'grsyncub.odp' can be downloaded from (making rsync easy with a memory key or a server)