【重要資安警示】發現冒充 Qfinder Pro 的非官方網站,了解詳情 >

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/


這篇文章有幫助嗎?

35% 的人認為有幫助。
謝謝您,我們已經收到您的意見。

需要進一步協助,歡迎前往官方社群發文,與其他用戶及 QNAP 專家交流。 前往 QNAP 官方社群

請告訴我們如何改進這篇文章:

如果您想提供其他意見,請於下方輸入。

選擇規格

      顯示更多 隱藏更多
      選擇其他偏好的語言:
      歡迎隨時洽詢! 歡迎隨時洽詢!
      back to top