Re: Backup home dirs on F9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2008-10-15 23:03:06 -0400, Tom Diehl wrote:
> I am having a problem backing up my homedir on my F9 box. When the backup
> software tries to read the .gvfs file system as root the software complains
> that it cannot read it. http://bugzilla.gnome.org/show_bug.cgi?id=534284
> says that this broken behavior is deliberate and will not be fixed.
>
> So the question is, how are we supposed to backup the homedirs? I never logout
> of this machine or reboot it unless I need to upgrade the kernel.
>
> I know I can umount the .gvfs filesystem and the backups will complete without
> a problem but I cannot find any documents stating how to remount the 
> .gvfs filesystem without logging out or even if it is necessary to 
> remount it.
>
> Can anyone shed some light on this? This behavior is annoying at best.

I ran into the same problem with dirvish, a perl backup package that
uses rsync.  xdev didn't help because I was backing up the same
partition that held .gvfs; exclude didn't work for me either.  dirvish
would bomb out with an rsync error.  You're right that the GNOME
developers have no intention of fixing the problem.  (Whether or not
their reasoning is sound is a matter for another discussion.)

I get around the problem with this little script which I run in the
background from .profile:

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

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----------------

-- 
JL <lists@xxxxxxxx>
This message optimized for teletypes.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux