Backup to shared folder? Problem with symlinks, mknod...

Discussions related to using VirtualBox on Windows hosts.
Post Reply
UTAN_dev
Posts: 9
Joined: 11. Dec 2013, 08:29

Backup to shared folder? Problem with symlinks, mknod...

Post by UTAN_dev »

Hello all,

I'm running an Ubuntu 12.04 LTS guest inside a Windows 7 host. I'm trying to set up a simple daily backup using rsync. A quick test showed the following:

Code: Select all

05:20:14 ~$ rsync -a --delete ~/ /media/sf_backup/
rsync: symlink "/media/sf_backup/.drush/quickstart" -> "/home/quickstart/quickstart" failed: Read-only file system (30)
rsync: mknod "/media/sf_backup/.lastpass/pipes/lastpassffplugin" failed: Operation not permitted (1)
rsync: mkstemp "/media/sf_backup/.local/share/Trash/files/.Screenshot from 2013-05-15 17:07:09.png.WIM4Fs" failed: Protocol error (71)
rsync: mkstemp "/media/sf_backup/.local/share/Trash/info/.Screenshot from 2013-05-15 17:07:09.png.trashinfo.kmCmDw" failed: Protocol error (71)
rsync: rename "/media/sf_backup/.local/share/gvfs-metadata/.trash:.fljJIN" -> ".local/share/gvfs-metadata/trash:": Invalid argument (22)
rsync: rename "/media/sf_backup/.local/share/gvfs-metadata/.trash:-c5fa45af.log.rD1Fll" -> ".local/share/gvfs-metadata/trash:-c5fa45af.log": Invalid argument (22)
at which point I ^C'd out of it. Is there a way to prevent VirtualBox from choking on symlinks etc. when rsyncing to a shared folder?

Thanks.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Backup to shared folder? Problem with symlinks, mknod...

Post by noteirak »

Shared folders are not true file sharing implementation. They only emulate the required parts so you can copy things, but things like permissions or symbolic links will break.
If you require proper network shares, I would strongly suggest to go with NFS or CIFS
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply