• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Sync DVR and NAS... rsync to the rescue?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Sync DVR and NAS... rsync to the rescue?

    My new Humax DVR supports DLNA/uPNP built-in which in theory means you can watch your recorded shows (and live channels) on any device with an appropriate client (like VLC). Unfortunately the implementation is flaky to the point of not being much use for recorded programs, but it does also expose access via FTP.

    My thought was to copy those files to a device which can run a proper media server (like Plex or something similar), such as my desktop or a NAS.
    But I don't want to manually copy things or remove them. I'd love a folder on my server to automatically mirror the DVR so as new files appear it copies them, when they disappear (I delete on the DVR) thy get removed from the copy location.

    I have never used it but is this precisely what rsync is for? I am more from a Windows background so I wonder if robocopy or Powershell is better... any personal recommendations how you'd do this?
    The only special use-case I can see is that if a program is still being recorded, its file keeps growing and I wouldn't want to copy until recording is complete. But I would imagine any unix-y tool would let me filter where "last updated > 5 minute ago" or something.
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    #2
    This is what the AI says

    Yes, rsync is a tool that can be used to automatically mirror the contents of a directory on one device to a directory on another device. Rsync is a popular tool on Unix-like operating systems, such as Linux and macOS, and it can be used to efficiently synchronize files between two locations. Rsync can be configured to only copy files that have been updated or changed, so it would be possible to set up a synchronization process that only copies files that are no longer being recorded on the DVR.
    First Law of Contracting: Only the strong survive

    Comment

    Working...
    X