Page 1 of 1

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

Posted: 19. Dec 2013, 00:37
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.

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

Posted: 19. Dec 2013, 13:43
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