#!/bin/sh
mount -t cifs //192.168.5.90/share -o password='' /mnt/tera_nas
rsync -av --super --delete --recursive /home/ /mnt/tera_nas/home/
# sleep 5m (i want to avoid using this)
# Bash shell snippet to check if mounted Samba share is not busy before issuing umount command
umount /mnt/tera_nas/
主页
/
user-10577