LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-24-2015, 01:13 AM   #1
fnords
LQ Newbie
 
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
Bind mount (script) of various files within a directory pointing to a unified destination


i'm trying to bind parts of some data using 6 different HDD from /media/datastore1 - /media/datastore6 to /media/data/
All files are in /media/datastore1 starting with /media/datastore/Videos/Movies/A to Z
Now i want to bind mount all those files into a single location e.g /media/data/Videos/Movies/

so i tried to do that task with the command within the directory of /media/datastore1

find -name '*' -follow -type f -exec mount --bind /media/data{} \;

But find gives entire directories as output so it won't bind that mount to the destination. Is there a possible way to do that.

I can't use symlinks, NFS wont eat that.
 
Old 12-24-2015, 11:57 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
You cannot use "mount --bind" to commit "files" from several varied locations into one mount point, this command "eats" only directories.

NFS or not, you can use "sockets" with accredited address.

Last edited by malekmustaq; 12-24-2015 at 11:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync - Only copy files that do not exist at the destination directory? wh33t Linux - Software 3 03-02-2014 05:30 PM
cp -u copies old files that already exist in the destination directory terence Linux - General 3 11-08-2012 04:07 PM
Rsync deleting files from destination directory Russell P Linux - Newbie 2 07-14-2011 11:07 AM
[SOLVED] mount bind, preserving directory contents batfastad Linux - Newbie 5 11-17-2010 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration