Samstag, 11. April 2015

Mount USB-HDD at NAS and perform complete sync of NAS data

Create folder for mountpoint:

sudo mkdir /media/usbhdd


Look for harddisks and partitions:

fdisk -l


Check all existing mountpoints:

cat /etc/fstab


mount USB-HDD:

mount -t ntfs-3g -o rw /dev/sdd2 /media/usbhddbackup

(package ntfs-3g needs to be installed!! Otherwise the partition will be indicated as "windows basic data" and will be mounted as read-only!!)


sync data fron NAS to USB-HDD:

rsync -avzP --log-file=/tmp/rsync-status.txt /mnt/data/ /media/usbhdd/


check sync progress live:

tail -f /tmp/rsync-status.txt