If I perform an local rsync with the 'delete' option over an NFS mount, and
the mount point has been unmounted, the rsync will delete what was once on
the local box..
For example
Machine 1(192.168.0.1) is a live production server with a database within
the /DB directory
Machine 2 (192.168.0.2) is
Hi,
On Fri, 1 Apr 2005 [EMAIL PROTECTED] wrote:
If I perform an local rsync with the 'delete' option over an NFS mount, and
the mount point has been unmounted, the rsync will delete what was once on
the local box..
This is correct behaviour, if the source directory is empty.
Ckeck if mounted before
[EMAIL PROTECTED] wrote:
Now , If I reboot machine 2, and forget to do the NFS mount, (actually the
above rsync is in a crontab entry to happen automatically), then the
/DB/plantx will be empty due to the 'delete' option of the rsync statement.
I would assume this is a bug ???
Um.why wouldn'
Hi,
On Fri, 1 Apr 2005, John Jablonski wrote:
[EMAIL PROTECTED] wrote:
Now , If I reboot machine 2, and forget to do the NFS mount, (actually the
above rsync is in a crontab entry to happen automatically), then the
/DB/plantx will be empty due to the 'delete' option of the rsync statement.
I would
> grep nfs /proc/mounts
abit:/snapshot/abit /backup nfs
ro,nosuid,nodev,v3,rsize=4096,wsize=8192,hard,intr,udp,lock,addr=abit 0 0
... easier, and a simple prefix without a nesting level:
NFS_MNT="/mnt/plantx"
mount | grep $NFS_MNT >/dev/null
if [ ! "$?" = 0 ]; then
echo "source not mounted, n