How to backup files from a Linux OS to NAS using Rsync?


최신 업데이트일: 2021-09-15
Applicable products:
  • All NAS firmware

If the Linux OS has NFS server enabled, you can backup files from the Linux OS by mounting the NFS share to the NAS local folder, then run rsync command.

Sample steps:

  1. Connect to QNAP NAS via SSH
  1. run mkdir /mnt/nfsfolder to create a local mount point

  2. Mount Linux NFS share in the NAS using the mount point, in this example, path is 10.64.72.102:/share/CACHEDEV1_DATA/nfsshare102

    [/] # mount -t nfs -o rw -O user=admin,password=mypassword 10.64.72.102:/share/CACHEDEV1_DATA/nfsshare102 /mnt/nfsfolder
    [/] # df
    10.64.72.102:/share/CACHEDEV1_DATA/nfsshare102 297.8G 63.9G 234.0G 21% /mnt/nfsfolder
    [/] # ls -l /mnt/nfsfolder/
  3. Run the rsync command. If the destination in the NAS is Public shared folder, such as the path /share/CACHEDEV1_DATA/Public/ run the command:
    [/] # rsync -avz --progress /mnt/nfsfolder/* /share/CACHEDEV1_DATA/Public/


이 기사가 도움이 되었습니까?

33% 의 사용자들이 도움이 된다고 생각할 것입니다.
피드백을 주셔서 감사드립니다.

이 기사가 어떻게 개선될 수 있을지 말해 주십시오.

추가 피드백을 제공하려면 아래에 포함하십시오.

사양 선택

      더 보기 적게 보기

      다른 국가/지역 사이트:

      open menu
      back to top