NSA326 system upgrade to have rsync, is it possible?

Options
hazimozi
hazimozi Posts: 14  Freshman Member
First Comment First Anniversary

Earlier I got help to be able to read data from my disks removed from dead NSA325. They are sit in a new 326 wich runs without installed batches, system runs in the RAM disk and I manage files via SSH terminal by commands.
(solution here: https://community.zyxel.com/en/discussion/21451/copy-data-from-removed-jbod-disks#latest)
As I struggle with available disk space for backup 2 by 2TB disks it took some time to find the best solution. Finaly I decided to delete some data to fit all important files into one disk. I wanted to use rsync to copy files with directory structure, but system said there is no rsync.

Is there a way to install rsync to the system? Maybe install some system extension?

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,939  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary
    Answer ✓

    The package RandomTools, which you can download here, contains an rsync binary. When you put in in your /bin/ directory and make it executable, it should work.

    The zpkg file is an .tar.gz file, which contains a data.tgz, which contains the binary.

All Replies

  • Mijzelf
    Mijzelf Posts: 2,939  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary
    Answer ✓

    The package RandomTools, which you can download here, contains an rsync binary. When you put in in your /bin/ directory and make it executable, it should work.

    The zpkg file is an .tar.gz file, which contains a data.tgz, which contains the binary.

  • hazimozi
    hazimozi Posts: 14  Freshman Member
    First Comment First Anniversary

    thx.

    one more question: before got rsync i tried to copy a directory with cp command and the result no is definietly larger than source. (source 15GB, target 26GB, reported by du). do you have any idea how is it possible?

  • Mijzelf
    Mijzelf Posts: 2,939  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary
    edited July 31

    What is the target filesystem? AFAIK du reports disk usage, which means that a single byte file will be reported as using the cluster size. (4k, on ext3).

    So if you copy a lot of small files from a 4k cluster filesystem to a 8k cluster filesystem, te used size will increase.

    There can be other reasons as well. I'm thinking about symlinks, hardlinks and sparse files. cp without switches will ignore them all, and just copy the

    file.

  • Mijzelf
    Mijzelf Posts: 2,939  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary
    edited July 31

    Stupid forum software. There is a strange character in the comment above, and now I can't edit it.

    The last line should end with 'and just copy the apparent file'.

  • hazimozi
    hazimozi Posts: 14  Freshman Member
    First Comment First Anniversary

    I used cp -a

    The two hdd's are identical, both of them a 2TB WD Red. Also wierd as du shows this deifference (sourece 15GB, target 25GB), but when viewed via Winscp both are 25GB!

  • Mijzelf
    Mijzelf Posts: 2,939  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary

    Sorry. In that case I wouldn't know. Maybe a bug in (busybox?) du? Here is something written about it, but it doesn't look like your observation.

Consumer Product Help Center