Git annex will keep track of where files are for you.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I use git-annex for syncing and backing up all of my data; would highly recommend if you're looking for something that scales well, OP.
You could make a text file of all the directories/files, name it according to the drive name, and then you could search the text files or just scroll through it.
A slightly more polished version might be a locate db per disk
This. By default, the locate command does not check whether the files found in the database still exist, so you could use it even if the indexed filesystem or path is offline.
Not sure if it's more suitable than what's been suggested already, but I use Virtual Volumes View, an open source program to log/index my (disconnected) external drives and older hard drives.
I then keep the database/catalogue in a shared location I can check from my desktop/laptop.
Save a list of all the files full paths, then run that file through fzf https://github.com/junegunn/fzf
mlocate, plocate, slocate
Mount the drive, run updatedb
, then unmount the db when that finishes. Then use the locate
command.
You could maybe do some tricks with one of the variations of locate - such as mlocate or locate. There are options for the updatedb to index specific paths and store in the specified database. If you store a separate db per drive, a bit of scripting to loop through all DBs would let you search them all.
To index the contents of the drives, you can redirect the output of the find command to a file. For example, find /path/to/your/drive -type f > drive_index.txt
will create a file named drive_index.txt
containing a list of all the files in the drive.
Then place all the file list in the same folder and grep that folder to find which drive contains the file.
The hard drive that is disconnected
That's not very helpful lol
I think they just dropped this
?
The hard drive that is disconnected
The Hard Drive That Is Disconnected
Not being facetious but you could write your own tool. It might take a minute at first but then it would be yours and be totes worth it.