Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member

Slides:



Advertisements
Similar presentations
Module 4.2 File management 1. Contents Introduction The file manager Files – the basic unit of storage The need to organise Glossary 2.
Advertisements

Winmail.dat what it is and what to do with it This guide tells you all about winmail.dat files and the WMDecode decoder Instructions for installing WMDecode.
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
The sequence of folders to a file or folder is called a(n) ________.
Background of Wireless Communication Student Presentations and Projects Wireless Communication Technology Wireless Networking and Mobile IP Wireless Local.
Linux & Shell Scripting Small Group Lecture 4 How to Learn to Code Workshop group/ Erin.
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
Microsoft Office Illustrated Fundamentals Unit B: Understanding File Management.
The file server model July 14, 2011 © 2011 PC3.org The File Server Model Presented for the PCCC Program Notes We recommend that you print these slides.
Create a Website on the CWU network Find “How to Post a Web Page with a PC”
‘ {] Chapter 2 (HW01) Getting Started with Windows 7.
‘ {] PowerPoint Presentation to Accompany GO! with Windows 7 Getting Started Chapter 2 Getting Started with Windows 7.
Software All parts of the computer people can NOT touch, such as programs, files, documents and any other data.
Tutorial 11 Installing, Updating, and Configuring Software
Accessing Barney Off- Campus How can I get my H: files when I am not on the GU network? Business 111 Edward Mitchell Fall 2006.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
FIRST COURSE Managing Your Files. XP New Perspectives on Microsoft Office 2007: Windows XP Edition2 Objectives Create, name, copy, move, and delete folders.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Using Publisher to Create a Web Site Mr. Sandford’s U. S. History Class.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
Running CATIA on Windows XP & Vista Dual Boot System 1 Many of us have ?dual boot? OS PC, most likely Windows XP & Vista in dual boot. If you just installed.
Setting up Cygwin Computer Organization I 1 May 2010 ©2010 McQuain Cygwin: getting the setup tool Free, almost complete UNIX environment emulation.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
How to back up files on Windows 7 Step by Step Version.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
Here are some things you can do while you wait 1.Open your omeka.net site in your browser (e.g. 2.Open.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Download & Convert Videos 1.How to Download Videos from YouTube & other Web sites; and 2.Convert them to WMV format so can be edited in Windows Movie Maker.
Installing a Moodle Test Site The painless and easy way.
An introduction to Cygwin Lili He Booth Engineering Center for Advanced Technology (BECAT) Seminar.
 CSC 215 : Procedural Programming with C C Compilers.
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)
Notes on Backups Presented by Dave Mawdsley, DACS Member, Linux SIG Member a look at priorities and simple backup methods.
A Simple SED Lesson Presented by Dave Mawdsley, DACS Member, Linux SIG Member February 15, 2012 (modifying HTML tags in an html file)
FTP vs. Drag-n-Drop Dr.Sara Wolf EDMD 7200 Spring, 2007.
Using Crontab with Ubuntu
Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member
Class Projects and Environment
Presented by Dave Mawdsley, DACS Member, Linux SIG Member
Version Control with Subversion
Computer Skills windows.
Computing Fundamentals
Microsoft Windows 7 - Illustrated
Learning the Basics – Lesson 1
BIF713 Managing Disk Space.
Understanding File Management
Using Publisher to Create a Web Site
Managing Software.
Arrays and files BIS1523 – Lecture 15.
Understanding File Management
Introduction to Microsoft Windows
What Is Google File Stream
Operating System Fundamentals
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Class Projects and Environment
3.1 Basic Concept of Directory and Sub-directory
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
CS-0110 Introduction to Windows XP
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Microsoft Office Illustrated Fundamentals
Chapter 1 Introducing Small Basic
Instructions for Data Base
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Computer Skills windows.
Computer Skills windows.
Presentation transcript:

Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member Backups Using cwRsync (using rsync from Linux in a Windows computer) Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member February 17, 2016

1 What's this all about? I have a Windows 7 user who runs a business and needs to make backups of his data. His older computer had failed and with it went his favorite paid synchronized backup program 'Save-N- Sync' that is no longer available. I suggested to him that I was mostly finished writing a command script which would be an inexpensive replacement for his old program. What I came up with was a Windows 7 command script which uses rsync from the Linux world running under the Linux environment Cygwin inside Windows 7. In short, he's now using my inexpensive script customized to his needs and he is happy with the results.

First a Website to Visit 2 First a Website to Visit A visit to https://en.wikipedia.org/wiki/CwRsync gives this description: “cwRsync is an implementation of Rsync for Windows. Rsync uses a file transfer technology specified by the Rsync algorithm, transferring only changed chunks of files over the network. cwRsync can be used for remote file backup and synchronization from/to Windows systems. cwRsync contains Cygwin DLLs and a compiled version of Rsync on Cygwin. A client GUI is also provided as of the version 5.0.0.”

Next a Download On the Windows 7 computer... 3 Next a Download On the Windows 7 computer... Visit: https://www.itefix.net/content/cwrsync-free-edition to download the package: cwRsync_5.5.0_x86_Free.zip and proceed to unzip the free client package. (The server version is a paid one.) I chose put the extracted main folder contents in a directory folder cwRysnc in the user's Documents folder. (not in the folder Program Files)

Here's cwRsync's Contents 4 Here's cwRsync's Contents C:\users\MadMod\Documents\cwRsync now contains a bin folder and three other files. The bin folder contains .dll's pertaining to Cygwin. We'll open cwrsync.cmd in Notepad and make some customizations and then save the new file as backup.cmd being careful to select All Files instead of Text just before saving.

backup.cmd changes necessary 5 We first need to change in cwrsync.cmd the default rsync lines from: rsync -r /cygdrive/c/work/ /cygdrive/e/work/doc/ To my choice: (Note that its coding assumes a Bash shell at this point.) rsync -r -t -p -o -v /cygdrive/c/users/MadMod/Desktop/ /cygdrive/e/Desktop/ This assumes: 1. the user is MadMod, (The Windows 7 path on drive C includes the users/<user>.) 2. the Desktop folder is what needs to be backed up, 3. drive e is the destination USB drive and 4. the Desktop is a folder on drive e. (The USB drive doesn't require a users/<user>.) For my customers, I usually recommend at least two more similar rsync lines: 1. one for the Documents folder, 2. one for the Pictures folder and 3. one for the Downloads folder. The cygdrive portion of the rsync command invokes the Cygwin .dll's. Note that the coding the rsync lines of this command script use the strict Linux Bash syntax, but the other lines of backup.cmd use only Windows command notation which ignores spaces and upper vs lower case letters and requires \ in paths.

My Code p.1 6

My Code p.2 7

My Code p.3 8 For a non-Linux user, (Windows) my choice is white letters on a blue background. I used the command: COLOR 1F for this. I prefer a menu driven approach for the user which allows for a choice of the drive letter and choice to backup a folder or not. Unfortunately I'm forced to use GOTO MENU.

9 Concluding Remarks 1. Writing this customized command script in a mix of Windows and Linux styles reminds me of why I much prefer to write scripts using a Bash shell. I feel that the Window command (batch file) is primitive by comparison. Statements such as GOTO MENU looks like BASIC. 2. Writing this script makes me wonder why there wasn't an rsync like command for Windows users. Copy and Xcopy just don't cut it by comparison to rsync as far as synchronization is concerned. 3. I speculate that why such an algorithm as rsync didn't show up in the Windows command environment has to do with a long-tem behavior of Microsoft ignoring the average user's needs. Synchronized-style backups are clearly needed by almost all computer users. Microsoft left that need to be filled by 3rd party vendors selling their software sometimes at inflated prices. It is amazing that Microsoft couldn't see this need and thus profit themselves. 4. I prefer synchronized backups. When a person needs a backed up file, they don't need the entire compressed archive.

This LibreOffice.org Presentation 'cwrsync.odp' 10 Backups Using cwRsync (using rsync from Linux in a Windows computer) This LibreOffice.org Presentation 'cwrsync.odp' http://madmod.com/freebies.html