Code Sample, my very own b2evolution plugin »

A GUI for Rsync

15/07/08

Permalink 03:10:11 pm, by richard Email , 439 words   English (GB)
Categories: Scripts

A GUI for Rsync

NAME

rsync_gui.pl - a front end to rsync, it saves having to remember all those command line parameters you used last time.
There should be a blue line here

...

SYNOPSIS

Command Line Options
rsync_gui.pl  [ [--message] [--nomessage] [-m]
                 [--verbose] [--noverbose] [-v]
                 [--version]
                 [--help]
               ]

DESCRIPTION

This script will help you enter the correct parameters to run the rsync command and therefore replicate or copy one directory tree to another place.

When using the include and exclude options please note that rsync command line parameters are built up in the following order the following:

  --exclude-from --exclude [--exclude]  --include-from --include [--include]

The Check buttons allow the user to test the currently entered values. For the User/Host tab this will try to ssh to the host machine using the user name provided. It is assumed that you have setup ssh so that you do not need to enter a password. On the Directories tab this will test the the source directory exists and is readable by the current user. The destination directory will be tested for write permissions. If there is a User/Host specified then these tests will be carried out remotely via a ssh connection.

OPTIONS

--message

This will redirect both STOUT and STDERR from the rsync command and store it in a file $HOME/rsync_mssg.log. The date and time along with the command line used will also be saved to the message log.

--verbose

Turns on some extra trace displays and sends them to STDERR.

--version

You already worked this out :) It prints the version of the script.

--help

Prints out the help text.
There should be a blue line here

FILES

$HOME/.rsync_guirc

This file is read in when the script first runs during its initialization. Any values saved in this file will be loaded as defaults. If you use similar values each time you run this script it can save time adding them back again and save mistakes.

The values can be saved to the file via the Menu File-> Save Defaults or the short-cut key <CTRL-S>. These values can also be reloaded with Menu File-< Load Defaults or the short-cut key <CTRL-L>.

$HOME/rsync_msg.log

This file will be appended to with the STDIO and STDERR output from the rsync command that is built up and then run. The option is turned on via the main menu Tools->Preferences...->save message. Take care this file can get very large, if you use the verbose and other reporting switches for rsync.

Download


Download Version Rsync GUI Version 1.0


No feedback yet

This is where I store my plugins, scripts and other goodies. If they look useful download a copy.

Search

Contents

powered by b2evolution