/home/<user>/.gvfs causing problems for rsync

Jorge Luis lists at jorge.cc
Tue Nov 11 21:35:56 UTC 2008


* Johann Spies <jspies at sun.ac.za> [20081111 10:15 +0200]:
> 
> The problem is not with rsync but with .gvfs.  There are many other
> excludes in my list including some dotted directories.  The problem is
> that rsync cannot handle .gvfs - even when it is excluded.
> 
> BTW, removing the -r also did not make any difference to my problem.

I ran into the same problem using dirvish, an rsync-based perl backup
system.  I get around it by running the following:

--------------8<----------------

#!/bin/sh

# Start this script as a background process from .profile

dir="$HOME/.gvfs"

# Allow only 1 daemon process per user.
for pid in `ps -o'pid' --no-heading -C $(basename $0)`
do
 if [ $pid -ne $$ ]; then
  echo "$(basename $0) already running"
  exit
 fi
done

# Loop forever
while :
do
 if [ ! -w $dir ]; then
  /usr/lib/gvfs/gvfs-fuse-daemon $dir
  /bin/fusermount -zu $dir
 fi
 sleep 10
done

------------>8---------------

Good luck,

	JL
 
-- 
JL <lists at jorge.cc>
This message optimized for teletypes.





More information about the ubuntu-users mailing list