Menu

Primary Information

2010-09-19
2013-04-11
  • Sergey Vakula

    Sergey Vakula - 2010-09-19

    This tool is designed to smarter synchronize directories between the current user on the local computer
    and the remote system via ssh protocol.

    When you run rsync-smart without any parameters, it looking for own configuration file ~/.rsync-smart
    and if it finds it, starts the synchronization process.
    Otherwise, displays an informational message (same as -help).

    To get started with rsync-smart, you need to add synchronization rules.

    Siest way to add a synchronization rule, run
    $ rsync-smart add

    In this case, you will be prompted to interactively enter all the necessary data to do synchronization.

    If you want to add data in non-interactive mode, you need run like this:
    $ rsync-smart add john@aol.com /home/johnny/data ~/mydata -defaults

    In this case, local directory /home/johnny/data will be synchronized with the directory on the remote computer
    at ~/mydata (user john, host aol.com, protocol ssh, standart port 22).
    If on the remote computer in the directory ~/mydata will be files that are not on the local computer,
    such files WILL BE ERASED from a remote computer!

    If you want to change this defaults, you need to run like this:
    $ rsync-smart add john@aol.com /home/johnny/data ~/mydata

    In this case, each option will be confirmed in an interactive mode.

    If you want to synchronize the data immediately (without saving the configuration file), you need to run
    rsync-smart with first parameter "syncnow" and other parameters like in "add". For example:
    $ rsync-smart syncnow john@aol.com /home/johnny/data ~/mydata
    $ rsync-smart syncnow john@aol.com /home/johnny/data ~/mydata -defaults

    If you want to change or delete some of your synchronization settings,
    you can edit the configuration file ~/.rsync-smart or run
    $ rsync-smart edit

    PLEASE NOTE:
    1. Recommended to use only absolute paths in the SOURCE DIR ONLY (without "~", "." or ".." in paths).
    2. Recommended to add the authorization of keys between the systems of participants in the synchronization process.
    Otherwise, rsync will ask for the password for each option.

     

Log in to post a comment.