NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

b1jzcbx's avatar
b1jzcbx
Tutor
Apr 06, 2022

ssh and scp certs

Hey folks,

 

I'm trying to migrate all my data from my old qnap to my readynas.

I have a ton of very important folders with movies and also personal data (about 4TB worth of stuff), and considering both nas's are connected to my switch in a LAG, i want to ssh into one and perform a copy via scp of the folder, because as i've read, that'll copy everything, including subfolders and the files within them.

 

i'm a novice with linux and it's command line and im taking a crash-course.

I know the command to do the copy, however whenever i try i get a cert error, saying that a cert isn't present or something to that effect.. basically, while i can ssh into each nas individually, when i run the scp command to begin moving files from one nas to the other, i get an error telling me that someone might be doing something nasty..

 

I know, seems kindve vague, but i'm sure one of the pros here will know exactly what i'm talking about.

 

I'm running readyNas OS 6.10.7 on an rndp6000-100nas (business edition).

 

someone will tell me to rsync..  I want to use scp because it's something to learn.  i need to learn the command line.

 

thank you!

9 Replies

    • b1jzcbx's avatar
      b1jzcbx
      Tutor

      thanks for the reply.

       

      So, if you don't mind, what do you mean by "be aware that shares are BTRFS subvolumes, not simple directories" ?

       

      why should i be concerned about that?  are you suggesting that if i were to get my certs squared away and perform a simple

      "scp /source /destination.."  it's not going to copy all the folders and contents?   because, yeah..  there are a TON of folders and subfolders..

      aside from just old work backups, (which are obviously most critical), i've got a ton of movies and tv series, and they're all in folders, within folders, etc..

       

      i know about rsync, i was just trying to do it by way of scp because i've gotta set up rsync between the two boxes..  and in my mind it's more of a utility than a command.  and i'm trying to learn the command line and the linux folder structure, etc altogether.  yes, it's a bit masochistic but it's important to know.

      • StephenB's avatar
        StephenB
        Guru

        b1jzcbx wrote:

         

        So, if you don't mind, what do you mean by "be aware that shares are BTRFS subvolumes, not simple directories" ?

         

        why should i be concerned about that? 

         ReadyNAS shares appear to be normal folders in the root of the volume, but they are not.

         

        This doesn't matter if you are copying them to another system, or if you are adding to the shares.  But if the ReadyNAS is the destination, and the destination share doesn't already exist on the ReadyNAS, then you need to create the share in the admin web ui before you copy the data.  Otherwise you will end up creating an ordinary folder in the root, which can create problems later on.

         

        Subfolders of shares are ordinary folders, so there no issues with them.  You just need to be careful about folders in the volume root.

         


        b1jzcbx wrote:

         

        i know about rsync, i was just trying to do it by way of scp because i've gotta set up rsync between the two boxes..  and in my mind it's more of a utility than a command.  and i'm trying to learn the command line and the linux folder structure, etc altogether.  yes, it's a bit masochistic but it's important to know.


        If there's a chance you will want to update the copy later on, then using ReadyNAS rsync backup jobs would probably be a better way tp go.  Then you can just re-run the backup jobs, and get an incremental update. Setting up rsync on the ReadyNAS side is very simple, as it is built into the admin web ui.

         

        One disadvantage to using SCP is that you cannot preserve the owner and group of the original files and folders.  You can preserve permissions (using -p), but you cannot preserve owner/group.

         

    • b1jzcbx's avatar
      b1jzcbx
      Tutor

      is there another way of copying?  without having to use certs, scp or rsync?  ftp is out because it won't copy folder contents..

      i'm just copying my movies and old backups from one nas to the other.. they're sitting next to one another.  i could do it via my workstation, but then it's an intermediary and with all the overhead, it's only able to copy at about 60MB/s, and would take 9-10hours.

      the two nas's are LAG'd to the switch and going from one directly to the other would probably only take an hour tops.

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More