The primary function of a NAS is to store, share and keep data redundant.
Hard drives are paired up in a RAID configuration and work together to avert data loss. https://www.synology.com/en-us/support/RAID_calculator
Note: The type of RAID chosen will affect the storage capacity, or total disk space.
Plan the storage capacity before setup, consider past present and future needs.
On models with 6+ hard drive bays, populate all bays -2 to leave room to grow the capacity for future needs.
Set up all available hard drives as one pool.
Consider backup as mandatory and RAID as high-availability (HA).
Schedule off-site backup to https://eu.c2.synology.com/ (or other).
frequency
- every 8 hours (3x daily) = small business
- every 4 hours (6x daily) = medium business
Integrity check once a weekly.
Target non-peak workload hours for backup/integrity checks.
sample schedule
https://kb.synology.com/en-us/DSM/tutorial/Quick_Start_Snapshot_Replication
Prerequisites
- install package "snapshot replication"
- Requires Btrfs volume (shared folder) or LUN.
A snapshot is a point-in-time copy of each file/directory on a volume from which you can recover from in case you need it.
Only file changes (deltas) on the volume are saved since the snapshot was created.
Note: Snapshots of encrypted shared folders cannot be browsed. Rollback the snapshot to a new volume to browse files/directories.
Sample schedule
- frequency: every 15 minutes
- keep all snapshots for: 14 days
- make snapshot visible (ticked)
- install package "synology drive"
- enable "User Home" service: Control Panel > "User & Group" > Advanced > Enable user home service
- optional, change the number of versions to keep of each file: Synology Drive Admin Consol > Team Folder > Versioning
Enable flathub repository.
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Install Synology drive.
flatpak install com.synology.SynologyDrive
Autostart synology drive on login (Gnome)
mkdir ~/.config/autostart
cp /var/lib/flatpak/exports/share/applications/com.synology.SynologyDrive.desktop ~/.config/autostart/
Optional: configure appindicator to receive notifications.
sudo dnf install gnome-shell-extension-appindicator -y
Complete the set up by launching the synology drive application.
Optional: link files and folders to synology drive.
mv ~/.bashrc ~/drive/bashrc
ln -s ~/drive/bashrc ~/.bashrc
mv ~/.bash_history ~/drive/bash_history
ln -s ~/drive/bash_history ~/.bash_history
mv ~/.ssh ~/drive/ssh
ln -s ~/drive/ssh ~/.ssh
rmdir ~/Documents
ln -s ~/drive/documents/ ~/Documents


