I'm trying to get dropbox symlinked to the relevant folders in /home. I'd like to symlink them like this:~/Dropbox/Pictures --> ~/Pictures~/Dropbox/Camera Uploads --> ~/Pictures/Camera UploadsIf I do that it will work but I'll have two copies of my pictures and videos stored on Dropbox. I don't want to waste space.Any ideas on how to solve this problem?
Can I create a symlink that will ignore subdirectories?
files;symlink;dropbox
Assuming you have root on the system, you can use a bind mount. Note that this will leave you with an empty Camera Uploads directory in your ~/Dropbox/Pictures, but avoiding that adds much more complexity (unionfs of some sort).# mount --bind ~user/Dropbox/Pictures ~user/Pictures# mkdir -p ~user/Pictures/Camera\ Uploads# mount --bind ~user/Dropbox/Camera\ Uploads ~user/Pictures/Camera\ UploadsYou can put these bind mounts in /etc/fstab or run them through sudo, of course.