Squeeze This NAS Episode 000 – Directory Structure

Original link: https://www.aemon.top/2022/08/08/%E6%A6%A8%E5%B9%B2%E8%BF%99%E5%8F%B0NAS%E7%AC%AC000% E8%AF%9D-%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84/

This is a series of articles about NAS. You have also seen the name of the series: ” Drain this NAS “. I will introduce the knowledge related to NAS in as much detail as possible to help you maximize the power of your NAS!

Regarding the first chapter, according to the general article routine, it is to introduce what NAS is and what it can be used for. But I think people who can see this article generally no longer need to popularize these contents. By the way, this series of tutorials are all software-oriented. If you need to assemble a NAS yourself, then you can save this series of articles first, and then read them after the assembly is complete. Having said that, this article will introduce to you how I plan my file directory structure .

The construction of the file directory structure will have a very critical impact on all subsequent container construction. It is not an exaggeration to say that it is the foundation of everything, not only NAS, your PC, your program projects, a thoughtful and clear-cut The directory structure will greatly facilitate your follow-up work.

PS: This article is not only the file directory of the NAS, but also the directory structure of this series of articles.

PPS: Regarding the naming rules of folders, all lowercase ( ofcourseistillloveyou ), all uppercase ( OFCOURSEISTILLLOVEYOU ), large camel case ( OfCourseIStillLoveYou ), small camel case ( ofCourseIStillLoveYou ), underscore connection ( of_course_i_still_love_you ), connection number connection ( of-course-i-still-love-you ) is up to your heart, as long as you can do the following: “unified, easy to identify, try not to use spaces, try to use only English, numbers, hyphens and underscores”.

Related articles in the series:

  1. Squeeze This NAS Episode 001 – File Browser

root (root directory)

The root here refers to the top-level directory on your NAS that holds most of your personal files, not the / directory on a Linux system.

From here, we’re going to classify your files.

 1
2
3
4
5
6
7
8
9
10
 ????
├── backup
├── books
├── code
├── data
├── downloads
├── manga
├── media
├── music
└── pictures

media

The place to store most of your media files.

There must be some people who want to have a NAS to build their own home media center. And this folder is the key to the home media center. Your TV series, movies, small movies, driving recorders, and video archives of various self-media can all be placed under this folder.

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 root
├── backup
├── books
├── code
├── data
├── downloads
├── manga
├── ?????
│ ├── av
│ ├── bilibili
│ ├── h
│ ├── moive
│ ├── tv_series
│ ├── teslacam
│ └── youtube
├── music
└── pictures

move (movie)

A place to store your serious movies.

This directory should only store scraped movies, and each movie should have its own separate subfolder containing movies, subtitles, nfo files, and poster images. The directory of the movie (moive) folder will be described in detail in a subsequent article.

tv_series (TV episodes)

A place to store your various TV episodes.

Your anime, American drama, Korean drama, Anti-Japanese drama etc. should be stored here. Like the movies folder, each TV episode should have its own separate subfolder containing the TV episode, subtitles, nfo files, and poster images. The contents of the TV episodes (tv_series) folder will be described in detail in a subsequent article.

av (Irregular movie)

A place to store the lady.

Your little sisters all live here, and the file naming here also has corresponding rules. The specific rules and related tools will also be introduced in subsequent articles.

h (indecent video)

some don’t number The young lady with the unit number will be placed here.

youtube

YouTube’s video archive will be hosted here. The tools for downloading YouTube videos will be described later.

bilibili

Same as YouTube.

TeslaCam (Tesla car driving record video and Sentinel video)

Tesla dash cam footage will be stored here. Tools for merging and viewing dash cams will be introduced later.

pictures

Another function of NAS is as a family photo album. Photos and videos taken by your mobile phone and camera will be stored here. Here, there are various ways of classification. You can classify by device, by date, and by event. Categorize them in a form that is convenient for you, these will not affect the creation of subsequent family albums. But try to make it as easy to identify as possible.

Regarding the establishment of family photo albums, follow-up articles will also introduce.

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
twenty one
twenty two
 root
├── backup
├── books
├── code
├── data
├── downloads
├── manga
├── media
├── music
└── ????????
├── iPhone_7
│ └── 2022
│ └── 08
├── Nikon_D5600
│ └── 20220808_Chongqing trip
├── iCloud
│ └── bot960528gmailcom
│ └── 2022
│ └── 08
│ └── 08
├── Qzone
└── other

Here are some classification methods:

iPhone_7 (by device)

Photos and videos taken with your iPhone 7 will be stored here.

2022 (year)

Photos and videos taken with your iPhone 7 in 2022 will be stored here.

08 (month)

Photos and videos taken with your iPhone 7 in August 2022 will be stored here.

Nikon_D5600 (by device)

Photos and videos taken with your Nikon D5600 will be stored here.

20220808_Chongqing trip (time_travel)

Photos and videos taken by your Nikon D5600 during your trip to Chongqing on August 8, 2022 will be stored here.

iCloud (according to backup method)

Photos and videos downloaded from iCloud will be stored here. The method to automatically download photos from iCloud regularly will be introduced later.

Qzone (as per photo source)

Here will store your QQ space black history photo. About the QQ space album, the download backup method of talk, will be introduced later.

other

Here are some of your lazy classification Uncategorized photos.

downloads

Downloading is also one of the main tasks of the NAS. All your download tasks and downloaded files should be stored here.

Regarding the classification of downloads, my rule is to classify according to the type of downloader. Of course, within various downloaders, I hope everyone can do a good job in classifying files.

The installation and configuration of various downloaders will also be introduced in the future.

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 root
├── backup
├── books
├── code
├── data
├── ?????????
│ ├── aria2Downloads
│ ├── emuleDownloads
│ ├── farmDownloads
│ ├── qBittorrentDownloads
│ ├── thunderDownloads
│ └── transmissionDownloads
├── manga
├── media
├── music
└── pictures

aria2Download (aria2 download directory)

The files downloaded by aria2 will be placed here.

emuleDownloads (emule download directory)

The files downloaded by emule will be placed here.

qBittorrentDownloads (qBittorrent download directory)

Files downloaded by qBittorrent will be placed here.

transmissionDownloads (transmission download directory)

Files downloaded by transmission will be placed here.

code

If you are a programmer, the NAS can also be your code repository, and when you deploy your git service on the NAS, the data in it can be stored here. If you only use this folder as your working directory (eg ssh to this server for coding), then you can sort by code type or programming language.

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 root
├── backup
├── books
├── ????
│ ├── script
│ ├── project
│ ├── java
│ └── python
├── data
├── downloads
├── manga
├── media
├── music
└── pictures

script (by type)

Your various scripts will be stored here.

project (by type)

Your individual projects will be stored here.

java (by programming language)

This is where your code written in java will be stored.

python (by programming language)

This is where your code written in python will be stored.

backup

Backup, which is an essential part of data preservation, if your data is precious. Be sure to make a backup. Later I will show you how to backup your data.

The name of the backup folder can be simpler, you just need to distinguish what software or data backup it is, so you can use the software or data name plus backup as your file name.

Regarding backup, I hope to do the following:

  1. Record the backup time of the backup file;

  2. regular backup;

  3. Compressed and encrypted to reduce the occupied space and ensure the security of backup files;

  4. 3-2-1 Backup principle, make at least three backups, store the backups in two different storage media, and store at least one in a different place.

Please be sure to pay attention to the importance of backup, otherwise, when the data is lost, it cannot be saved anyway.

 1
2
3
4
5
6
7
8
9
10
11
12
 root
├── ??????
│ ├── bitwarden_backup
│ └── wechat_backup
├── books
├── code
├── data
├── downloads
├── manga
├── media
├── music
└── pictures

wechat_backup (WeChat backup)

This is used to store your WeChat backup.

bitwarden_backup

This is where you store your BitWarden backups.

music

This is where you store your music. The classification of music is relatively simple, you can first classify by singer, and then install the album classification.

 1
2
3
4
5
6
7
8
9
10
11
12
 root
├── backup
├── books
├── code
├── data
├── downloads
├── manga
├── media
├── ?????
│ └── Jay Chou
│ └── Ye Huimei
└── pictures

Jay Chou

This is used to store Jay Chou’s music.

Ye Huimei

This is used to store songs from Jay Chou’s Ye Huimei album.

books (e-books)

This is used to store your e-books, which can be classified according to the type of books, such as: novels, literature, textbooks, etc., and no examples will be given here. . The follow-up will also introduce how to build your e-book warehouse.

 1
2
3
4
5
6
7
8
9
10
 root
├── backup
├── ?????
├── code
├── data
├── downloads
├── manga
├── media
├── music
└── pictures

manga (comic)

Comics stored here. The follow-up will also introduce how to build your comic warehouse.

 1
2
3
4
5
6
7
8
9
10
 root
├── backup
├── books
├── code
├── data
├── downloads
├── ?????
├── media
├── music
└── pictures

data

Data is a broad word. In fact, all the above categories can be classified into the data directory, so the purpose of this directory is to store those data that cannot be contained in the above directory.

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 root
├── backup
├── books
├── code
├── ????
│ ├── document
│ └── ISO
│ ├── Windows
│ ├── Ubuntu
│ ├── Adobe
│ └── JetBrains
├── downloads
├── manga
├── media
├── music
└── pictures

ISO

It is used to store the installation files of various system images and various software that you download.

Windows

It is used to store the Windows system installation image.

Ubuntu

Used to store the Ubuntu system installation image.

Adobe

Holds Adobe software installers.

JetBrains

Holds the JetBrains software installer.

document

Used to store your work life documents. The classification is based on your actual needs, there is no specific method.

As long as the classification principles are followed, a directory that is easy to manage and use can be created.

end

If you are just starting out with a NAS, it is recommended that you follow the instructions in this article to set up your directory structure. If you have been using the NAS for a long time and have stored a lot of data on it, then I still suggest that you better organize your NAS slowly and in blocks, which will be of great help in future use. !

If you have any good suggestions or comments on the directory structure, you can also leave a message below, and we can discuss together. If you have good ideas, I will improve the article as soon as possible.

This article is reprinted from: https://www.aemon.top/2022/08/08/%E6%A6%A8%E5%B9%B2%E8%BF%99%E5%8F%B0NAS%E7%AC%AC000% E8%AF%9D-%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment