Restore backup from non docker build to docker build

I've been using CDVR for 4 years. Just built it on docker to get Hulu live TVE to work (so far it does). How to I get my old recording to be visible to the CDVR container? Both are built on. Synology NAS and the old recordings are still on the NAS but CDVR container can't see them. Backups on old one are available.

Containers can only see folders which you expose to them.

In docker build my storage is defined at /share/DVR. I have tv shows in /share/DVR/TV and movies in /share/DVR/movies. I can see these recordings if I use a command like to go into the container and do an ls command in both of those folders. But the docker cdvr can't see these recordings. What did I miss? I hace recent backups that were done on old non docker cdvr and I just stopped the old one didn't delete it. Any ideas?

Setup the same directory path in your docker volume as you had in your Synology Package install.

    volumes:
      - "/volume1/docker/channels-dvr:/channels-dvr"    # Channels DVR executables and log directory
      - "/volume1/ChannelsDVR:/volume1/ChannelsDVR"     # Channels DVR recording directory

That will create the directory /volume1/ChannelsDVR inside the container
You then select that directory for CDVR to record to, just like the old non-docker install

Of course you have to restore your latest backup from the old non-docker install after you do this.

When dealing with volume mapping in docker, be aware that directory paths are cAsE sEnSiTiVe. DVR is different than dvr

so I need both of directory paths in the docker volume (I assume 2nd one would match the name of folder that contains recordings from Synology package install).

volumes:
- "/volume1/docker/channels-dvr:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChannelsDVR:/volume1/ChannelsDVR" # Channels DVR recording directory

And finally, how do I restore from a backup from non docker install? I can't find any "restore from backup" menu in the CDVR admin screens.

Correct. And with Synology docker, it doesn't create host OS (Synology) directories, so make sure you create the /volume1/docker/channels-dvr directory in Synology first.

http://192.168.1.3:8089/restore
Use your IP and Port in place of 192.168.1.3:8089

What actually happens with the 192.168.x.x/restore? These recordings are sitting on the same nas as the docker container. Is there no way to just point the docker cdvr to th path of these existing recordings?

It basically copies the two database files from the Database/backup-... directory to the data folder inside its executables directory you defined by this path

      - "/volume1/docker/channels-dvr:/channels-dvr"    # Channels DVR executables and log directory

That (executables, log, database files) directory was in a different directory (/volume1/@appstore/ChannelsDVR/channels-dvr) when you were running it under a Synology Package install. The databases need to be restored because they hold all your settings, what you recorded and imported, watched states, etc.

That is what this does, assuming /volume1/ChannelsDVR is where you had it recording to.

      - "/volume1/ChannelsDVR:/volume1/ChannelsDVR"     # Channels DVR recording directory

THANK YOU! the xxx.xxx.xxx.xxx/restore worked perfectly!

1 Like

Wait - there's more! Soon after getting this to work, a weird problem cropped up. If I bring up a channels client that's on the same network - it thinks the client is not on the same network. If I bring up a browser on a phone and enter the IP/port for CDVR I get asked for an auth code. So somehow the clients think the new docker CDVR is not on the same network (but it is). Ideas?

Nevermind - I was messing around and forgot to set the container to host mode. I changed from bridge mode to host and works fine now.