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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux