Skip to main content

No project description provided

Project description

RESIF DATA TRANSFER

A helper script to send data to RESIF datacentre and get transaction status back.

REQUIREMENTS

SYSTEM REQUIREMENTS

  • This program is validated for:

    • Python 3.6 ou 3.8
    • Redhat Enteprise Linux 6.x and above, 32 or 64 bits
    • Debian Linux, Lenny and above, 32 or 64 bits however, this should work under any modern Unix/Linux system
  • You also need a working 'rsync' command (version 3.0.6 and above). Check your rsync command by entering :

     $ rsync --version
    

    IMPORTANT NOTE : as of April 2016, we are considering an update of the minimal rsync version requirement. Meanwhile, it is recommended that in case of unpredictible transfer timeouts, the most recent version of rsync be installed.

  • A working GNU 'du' command. Most often, du is provided with GNU coreutils, version 8.4 or above is advised. Check your du command by entering:

    $ du --version
    
  • You need a working Python interpreter on your system (version 3 and above), with its full standard library. Check your python interpreter by entering:

     $ /usr/bin/env python --version
    
  • It is highly advised that your system time be synchronized (eg. using NTP)

NETWORK REQUIREMENTS

  • You need a working rsync connection to resif rsync server. You may check your IP connectivity is working using 'nc', eg:

    $ nc -z rsync.resif.fr 873
    

    should return :

     Connection to rsync.resif.fr 873 port [tcp/rsync] succeeded!
    

    If you don't have nc, you may use telnet, eg:

    $ telnet rsync.resif.fr 873
    

    should return:

     Trying xxx.xxx.xx.xx ...
     Connected to rsync.resif.fr.
     Escape character is '^]'.
     @RSYNCD: xx.yy
    

    If your IP connection to the remote rsync server does not work :

    • First, check with RESIF datacenter operator the remote server is up and running

    • Then, check with your IT team that you are allowed to reach port tcp/873 on rsync.resif.fr

AUTHENTICATION REQUIREMENTS

Before you begin transferring some data, RESIF datacenter operator must provide you with :

  • Your node name
  • Your node password (must be kept secret)

For each data type you will transfer, you must tell RESIF datacenter operator :

  • The address (FQDN) of the machine you will be performing the transfer from.
  • DNS aliases are known to cause problem while doing IP filtering. Take care to provide the real name of your machine, not an aliased name.

There can be only one transferring machine per data type. You may use a single machine for all data types.

INSTALLATION

Resif Data Transfer published on PyPI and can be installed from there:

 pip install ResifDataTransfer

Then, you should be able to execute :

$ ResifDataTransfer -h

CONFIGURATION

By default, configuration file will be searched in install directory, eg:

/usr/lib/python3.6/site-packages/resif_data_transfer/ResifDataTransfer.conf

You may want to use an alternate configuration path (see -c option).

A template configuration is provided in ResifDataTransfer.conf.dist, copy this file to create your own configuration file :

$ cd resif-data-transfer/
$ cp ResifDataTransfer.conf.dist ResifDataTransfer.conf

Edit according to your requirements.

For security reasons, configuration file must only be readable by file owner and group. On Unix/Linux system, you may set configuration file permissions as:

$ chmod 600 ResifDataTransfer.conf

or

$ chmod o-rwx ResifDataTransfer.conf

UPGRADES

todo For safety, backup your current installation directory.

Download the new tarball and move it to your current installation directory. E.g, if your installation is in /home/sysop/resif-data-transfer, move the tarball to /home/sysop. Then, extract :

$ tar xvf resif-data-transfer.tar.gz

This will replace your previous installation. Your configuration and log files will not be replaced.

AFTER UPGRADING

to do Run a test transfer (using -t) to check your configuration file. Run a logbook dump (using -l) to check your logbook.

BACKUPS

You should backup the following files:

  • Configuration file
  • General log file
  • Logbook file

You may want to rotate the general log file using a system tool such as 'logrotate'. You should never edit/alter loogbook contents by hand.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ResifDataTransfer-0.6.0.tar.gz (28.4 kB view details)

Uploaded Source

File details

Details for the file ResifDataTransfer-0.6.0.tar.gz.

File metadata

  • Download URL: ResifDataTransfer-0.6.0.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.6

File hashes

Hashes for ResifDataTransfer-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7402b2a906c4337e52d6565e23fbb12c11aefcd58a50a10db000112c25d1d5a3
MD5 569d558758f7111b49bd8d810723ce6e
BLAKE2b-256 fcb1c1a4099847e5936f97f7e047255e9d9d9fb0e6e9b8e01adbcec54b14b840

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page