Posts by wizardknight

    I didn’t test to output the log to the destination disk maybe is getting deleted at the end. Try another location maybe /storage for the log file

    I redirected the log to storage, and it worked. A gold star to you.

    Code
    rsync -rav --modify-window=300 --hu.man-readable --progress --log-file=/storage/backup/synclog.txt --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ &>/dev/null
    Code
    LibreELEC:~/backup # ls
    synclog.txt

    Now the question is why can't I write to my external HD as root? That is just all kinds of special.


    nickr

    Can you tell me why hum.an is a censored word? I have to admit I am curious.

    Is this place ran by aliens, or powered by the screams of children? That would make sense.

    Thanks for the new version. :)

    I haven't had any luck getting any further with the remote, but I have hit a new snag with rsync.

    Are there any known issues with redirects? That might explain my issue with rsync.

    I have been trying to use this command, but it doesn't generate any redirect output. It works fine otherwise. Just no txt file I can review.

    I use an almost identical command on my dd-wrt router which is acting as a file server for me. I have no issue there.

    Code
    rsync -rav --modify-window=300 --hu.man-readable --progress  --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ > /var/media/8TB_WD2/synclog.txt

    Ignore the period in the word hu.man above. For some reason hu man is a censored word on this forum.

    I have tried a few other options that I documented in this other thread, but so far no luck getting redirected output or log files created.

    Help with output redirect please.

    Update:

    Figured out that I couldn't write a log file or redirect to the external hard drive. If it was sent to /storage/backup it works.

    Does anyone know why I can't write the log file to my external hard drive?

    Any suggestions are welcome. :)

    Just tried both suggestions, and there was no log file created.

    Suggestion #1

    Code
    rsync -rav --modify-window=300 --hu.man-readable --progress --log-file=/var/media/8TB_WD2/synclog.txt --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ &>/dev/null


    Suggestion #2

    Code
    rsync -rav --modify-window=300 --hu.man-readable --progress --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ 2>&1 | tee /var/media/8TB_WD2/synclog.txt


    Terminal output:

    Code
    ^CLibreELEC:/var/media/8TB_WD2/Media/Movies # rsync -rav --modify-window=300 --hu.man-readable --progress --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ 2>&1 | tee /var/media/8TB_WD2/synclog.txt
    
    sending incremental file list
    deleting synclog.txt
    ./
    Media/Epsoides/Hogans Heroes/Hogans.Heroes.S1.DVDRip/
    Media/Epsoides/Hogans Heroes/Hogans.Heroes.S1.DVDRip/Hogans.Heroes.1x32.dvdrip.xvid-BBBear_TMindTV.avi
            314.32M 100%   50.49MB/s    0:00:05 (xfr#1, ir-chk=1013/63529)

    Second SSH to check for log file:

    Am I missing something, or is the system not working right?

    I feel like an idiot. I can't see any reason why all of these would fail to generate some kind of output file.

    I did just notice a .fuse_hidden0000f49000000005 file being created when I kick off these commands.

    I am assuming that is a temp file for rsync, but it is the only thing at the root of that drive which is new.

    It also vanishes when I kill the rsync command.


    Thanks for the suggestions. :)

    Maybe I need to get out my voodoo chicken bones and grass skirt...

    Could be running low on magic smoke.

    It would be nice to get the output in the terminal and the log file, but I can live with not having it in the terminal.

    Thanks for the suggestion, but no luck. The rsync starts, but there is no log file.


    I am using almost identical code on my dd-wrt router, and it works there as expected.

    Code
    DD-WRT:
    rsync -rav --modify-window=300 --hu.man-readable --progress  --stats --force --delete /tmp/mnt/8TB_USB/ /tmp/mnt/5TB_Seagate_USB/ > /tmp/mnt/8TB_USB/rsync_Status.txt

    I have loaded my Rock64 with LibreElec, and I am also using it as my Samba server.

    I want to run a sync between the two USB hard drives I have attached to maintain a backup of my media.

    I can't seem to get the command quite right. I want to copy the data, and redirect the output to a text file so I can see what it is doing later on.

    I do want it to overwrite the old log file.

    This is the command I am trying to use:

    Code
    rsync -rav --modify-window=300 --homan-readable --progress  --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ |& tee /var/media/8TB_WD2/synclog.txt 
    
    -sh: syntax error: unexpected "&"

    I have also tried > but I get no log file output at all.

    Code
    rsync -rav --modify-window=300 --homan-readable --progress  --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ > /var/media/8TB_WD2/synclog.txt 

    If I cut off the redirect, it outputs to bash exactly what I would expect, but I can't get it to output to a log file.

    Works with output to bash ->

    Code
    rsync -rav --modify-window=300 --homan-readable --progress  --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/

    Can someone make a suggestion. I am probably missing something crazy simple, but just can't see it.

    PS for some reason the word hu.man is censored here. Please replace the homan with hu.man when reading my code above.

    I have found 1 issue I think.

    Looks like there are two 'receivers'

    rc0 and rc1.

    I have updated my keytable command to include the -s option, and got RC-6 enabled I think.


    Code
    LibreELEC:~ # ir-keytable -c -s rc1 -w /usr/lib/udev/rc_keymaps/hp_mce
    Read hp_mce table
    Old keytable cleared
    Wrote 64 keycode(s) to driver
    Protocols changed to rc-6

    However when I run the test, I get no response/data.

    Code
    LibreELEC:~ # ir-keytable -p rc-6 -s rc1 -t
    Protocols changed to rc-6
    Testing events. Please, press CTRL-C to abort.

    wizardknight I'm not sure the IR sensor is completly supported yet. However I have the same remote so I can play a little bit with it. It should work out of the box with lirc if IR sensor is supported.

    Thank you. I would be grateful for any tips you can give me.

    The sensor is reporting raw data. The IR driver seems to be running. It looks like it supports RC-6. It looks like RC-6 just can't be enabled.

    Let me know if I am just being dense and missing something obvious please. :)

    First thank you for making this. I love being able to have Kodi on my Rock64.

    I have everything up and working well for watching my media, but I wanted to get an IR remote online.

    z556_remote.jpg


    I am not a complete noob, and I have been trying to follow the wiki.

    infrared_remotes [LibreELEC]

    Still I can't seem to get the IR receiver to use RC-6.

    First I tried using the existing HP keymap

    Code
    LibreELEC:/usr/lib/udev/rc_keymaps # ir-keytable -c -w /usr/lib/udev/rc_keymaps/hp_mce
    Read hp_mce table
    Old keytable cleared
    Wrote 64 keycode(s) to driver
    Invalid protocols selected
    Couldn't change the IR protocols

    ir-keytable does show a receiver with rc-6 protocols, and I am trying to use the HP MCE remote which is an rc-6 device.

    I tried running mode2 to see if the IR was getting any info from the remote, and I did see raw data when I did that.

    I think I just need to enable rc-6, but the command I am trying doesn't seem to work.

    Code
    LibreELEC:~ # ir-keytable -p rc-6 -t
    Invalid protocols selected
    Couldn't change the IR protocols
    Testing events. Please, press CTRL-C to abort.

    Can anyone give me an suggestion for what I need to do to have a remote working?