NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Sput
Sep 01, 2020Aspirant
Readynas rn202 copy folder to windows via ssh
Hi, I have my NAS running a plex server, and after a failed update to plex and a loss of the plex database not media, I am looking at backing up some items a bit. I have found where the plex ...
- Sep 02, 2020
Hi StephenB
Thanks for the suggestion, I am clealy getting something simple wrong as I know its possible, I resorted to using WinSCP to give me a GUI to get to the required folder and download the plex database data.
Thankyou so much for the perseverance with me and helpful advice.
Sput
aks-2
Sep 01, 2020Apprentice
Where is the mapping to the ReadyNAS actually pointing (not sure you can map directly to that folder). I think you may need to copy the interested files to a 'share' that is mappable.
Sput
Sep 01, 2020Aspirant
The folder that I have mapped to is not one of the shares which are visible / made from within the GUI of the nas, but a folder for one of the apps that I have running on the nas.
I installed Plex from the admin gui, and as per the following link
https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/
There is a folder where the database etc for plex is stored on the nas. After SSH into the nas I was able to find that there is a .apps folder, and I used powershell to map a folder to \\nas\.apps\ as the T: drive, and from there I was able to use powershell to navigate the folder structure to find the plex data that is mentioned in the link above.
Many thanks
Sput
- aks-2Sep 01, 2020Apprentice
I don't think you can reach that folder via (SMB) shares, which is what your copy is doing. You can see it via SSH, but to reach the data you will need to first copy it to a visible location (I hasten to add, I think). I have a RN214, but not reachable right now to try.
- StephenBSep 01, 2020Guru - Experienced User
Sput wrote:
There is a folder where the database etc for plex is stored on the nas. After SSH into the nas I was able to find that there is a .apps folder, and I used powershell to map a folder to \\nas\.apps\ as the T: drive, and from there I was able to use
Do you mean \\nas\data ???
@Sput wrote:
Using powershell I have mapped T: to the readynas and done:
copy-item "t:\.apps\plexmediaserver\medialibrary\plex media server\" -destination "C:\plexbackup\"
It creates a folder called plexbackup on the W10 C drive however it does not copy the contents of the \.apps\plexmediaserver\medialibrary\plex media server\ folder
There are two problems here.
One is that you aren't using the correct syntax in the powershell command. It should be
copy-item "t:\.apps\plexmediaserver\medialibrary\plex media server\*" -destination "C:\plexbackup\" -Recurse
But you'll find that this command won't copy everything - at least it failed on some files when I tried it. The problem is that there is a maximum filename length in Windows, and some files had too long a name. That's partly because the path is so long.
Mapping T to \\nas\data\.apps\plexmediaserver\medialibrary\ lets you shorten the path.
Then copy-item "t:\plex media server\*" -destination "C:\plexbackup\" -Recurse will copy everything.
- SputSep 02, 2020Aspirant
Hi StephenB
Thanks for your reply, I have logged into everything this evening to give your suggestion a go as it sounded sensible, and I am having a problem simply mapping the drive in powershell, I will persever and report back, I keep getting system error 53 or 67 at the moment when mapping to \\nas\.apps or \\nas\data have tried by dns name and ip
hmmm
Sput
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!