Author Topic: Rsync Install setup instructions  (Read 329 times)

Eric Erickson

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Rsync Install setup instructions
« on: February 05, 2020, 10:01:35 pm »
Is there a simple tutorial around somewhere that would show me how the setup to use rsync to mirror some data drives between a ArcaOs2 machine and a NAS (WD MyCloud)? I've poke around quite a bit, but have not found any easy to understand samples or examples.

I've got all the software installed, but just can't seem to get the thing working as yet. I know it can be done, as I've seen lots of folks do it, but all the examples I can find are linux or windows based.

TIA

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 15
  • Posts: 645
    • View Profile
Re: Rsync Install setup instructions
« Reply #1 on: February 06, 2020, 12:19:47 am »
Hi Eric,

I am in the process of getting the final config done on my machine here and have committed to putting together an entry in our Wiki page here.

In the meantime, what questions do you have?

Here is some stuff directly from the 'rsync project scratchpad' if you will. Please note that the '--dry-run' option means that rsync does NOT actually make any changes. I use this to test various things out, such as what options do what, etc.

1) LOCAL drive sync - so nightly copy from source partition (G:\) to the target (I:\)
=> RSYNC --dry-run -aX2 --delete --progress --stats --exclude-from=G:\mptn\etc\rsync_exclude --log-file=G:\tmp\log\rsync_local_f_abr-1.log G:\ I:\

2) if you wish to query up the NAS connection:
=> RSYNC --dry-run --protocol=30 g:\ admin@nas::
 
where:
- @nas is the hostname for my NAS box, you can substitute with IP address
- 'admin' is the ID @nas box that you want to authenticate with

If successful you will be prompted with:
"Password:"
...at which point in time you key in the pass, what is returned is the volume available on your NAS, which will of course depend entirely on what's being shared on that NAS.


Special Combinations
====================
-a => -rlptgoD (no -H,-A,-X)

includes:
-r => --recursive
-l => --links
-p => --perms
-t => --times
-g => --group
-o => --owner
-D => --devices & --specials

excludes:
-H => --hard-links (preserve hard links)
-A => --acls (preserve ACLs (implies -p))
-X => --xattrs (preserve extended attributes)

--exclude=PATTERN       exclude files matching PATTERN
--exclude-from=FILE     read exclude patterns from FILE

If you do 'man rsync' @cli you will get a pretty good explanation of what does what.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 11
  • -Receive: 164
  • Posts: 2291
    • View Profile
Re: Rsync Install setup instructions
« Reply #2 on: February 06, 2020, 12:23:37 am »
Something to consider is what file system is on the NAS and whether it can and does support xttrs, which is the *nix name for extended attributes.

Neil Waldhauer

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 38
  • Posts: 495
    • View Profile
    • Blonde Guy
Re: Rsync Install setup instructions
« Reply #3 on: February 06, 2020, 01:05:40 am »
I use rsync, but not to a NAS, to another ArcaOS box. I eventually wrote some REXX programs to make it all work (list, backup, restore). The readme file with our rsync port is the best place to start.

[K:\] man rsync
SYS1041: The name man is not recognized as an
internal or external command, operable program or batch file.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 11
  • -Receive: 164
  • Posts: 2291
    • View Profile
Re: Rsync Install setup instructions
« Reply #4 on: February 06, 2020, 05:08:31 am »
Yum install man-db
Quote
The man-db package includes five tools for browsing man-pages: man, whatis, apropos, manpath and lexgrog. man formats and displays manual pages. whatis searches the manual page names. apropos searches the manual page names and descriptions. manpath determines search path for manual pages. lexgrog directly reads header information in manual pages.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 15
  • Posts: 645
    • View Profile
Re: Rsync Install setup instructions
« Reply #5 on: February 06, 2020, 05:13:27 am »
Hi Neil,

...[K:\] man rsync
SYS1041: The name man is not recognized as an
internal or external command, operable program or batch file.


So a two step answer:

MAN page functionality delivered by the man-db package I believe, I have the following installed:
man-db.pentium4                         2.7.6.1-3.oc00

The rsync man stuff on the other hand was - I am 100% sure - not a RPM package install. Going back to my notes I do have the following deployments noted:

1) rsync-3.0.9-20120425-shl.zip
2) rsync-3.0.9.1-20171111-shl.zip

At least one of these packages had the MAN pages because I have them deployed to the YUM/RPM structure. In fact I can also do 'man rsyncd.conf' and that brings up the daemon pages.

I do not remember which package had the man pages, maybe both did?

Doug Bissett

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 51
  • Posts: 1282
    • View Profile
Re: Rsync Install setup instructions
« Reply #6 on: February 06, 2020, 07:12:38 am »
I find rsync.html in the rsync directory. Double click it, and it opens in Firefox. I think that was part of the installed package.

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 35
  • Posts: 1066
    • View Profile
Re: Rsync Install setup instructions
« Reply #7 on: February 06, 2020, 10:49:07 am »
Attached is a copy of rsync-manual.pdf that I got when I setup the backups to my nas boxes.