How to backup files from a Linux OS to NAS using Rsync?
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:
-
run mkdir /mnt/nfsfolder to create a local mount point
-
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/ -
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/
아직 도움이 필요하신가요?
QNAP 커뮤니티에 질문을 올려 주세요. QNAP 직원과 경험 많은 사용자가 답변해 드립니다.