NAS Hardware Requirement
Tested Model
Synology DiskStation DS220j Network Attached Storage Drive (White)
Hardware Specifications
CPU | Realtek RTD1296 (64-bit, 4-core 1.4 GHz) |
Memory | 512 MB DDR4 non-ECC |
Drive Bays | 2 |
Compatible Drive Type | 3.5" SATA HDD/2.5" SATA HDD/2.5" SATA SSD |
Maximum Internal Raw Capacity | 32 TB (16 TB drive x 2) |
RJ-45 1GbE LAN Port | 1 |
USB 3.0 Port | 2 |
File System (Internal Drives) | EXT4 |
File System (External Drives) | EXT4/EXT3/FAT/NTFS/HFS+/exFAT* |
Amazon Purchase Link: https://www.amazon.in/Synology-DiskStation-Network-Attached-Storage/dp/B084CLC39K (₹21,900)
NAS Initial Setup
Please refer to the below video for setting NAS initially. Link: https://youtu.be/PrVAehzT8Yk
NAS POC
Our task starts with creating a shared folder(s) in our DSM. Every shared folder can have different permissions (access/modification capabilities) for different users.
There are multiple ways we can access shared folders on Synology NAS within the local network, a few are mentioned below for instance:
Access Shared Folders from Network Drive
Choose Go > Connect to Server from the menu bar. Type the IP address or name (appended with .local) of the Synology NAS preceded by smb:// or afp:// in the Server Address field and click Connect. (e.g. smb://EricaWang.local or afp://192.168.0.2)
Access Files via FTP
If your Synology NAS is accessible over the Internet, you can use an FTP application to access the shared folders. Go to Control Panel > File Services > FTP to enable FTP service, allowing users to upload or download Synology NAS data via FTP.
Access Files via File Station
File Station is DSM's file management tool, allowing DSM users over the Internet to access the Synology NAS folders with their web browsers, or transfer files to another WebDAV/FTP server.
‘Share’ is our root shared folder.
Synology NAS supports the following file-sharing protocols:
Windows: SMB/CIFS (My Network Places), FTP
Mac: SMB, FTP, AFP
Linux: SMB, FTP, NFS
Since it is a common protocol of Windows, Mac and Linux, SMB protol can be explored as development progresses further. But as Synology NAS already provides us with a FileStation API, we have used the FileStation API in our POC.
FileStation API
DSM provides us the option of expanding our applications based on its APIs, allowing our applications to interact with files in DSM via HTTP/HTTPS requests and responses.