7.6 KiB
running copyparty on synology dsm nas
this has been tested on a Synology ds218+ NAS with 1 SHR storage-pool and 1 volume, but the same steps should work in more advanced setups too
verified on DSM 7.1 and 7.2, but not on 6.x since my flea-market ds218+ refuses to install it for some reason
ok let's go
go to controlpanel -> shared-folders, and create the following shared-folders if you don't already have appropriate ones:
-
a shared-folder for configuration files, preferably on SSD if you have one
-
one or more shared-folders for your actual data/media to share
(btw, when you create the shared-folders, it asks whether you want to enable data checksum and file compression, i would recommend both)
the rest of this doc assumes that these two shared-folders are named configs and media1, and that you made an empty folder inside the configs shared-folder named cpp
-
your copyparty config file (see below) should be named
something.confdirectly inside that cpp folder, for example/configs/cpp/copyparty.conf -
during first start, copyparty will create a folder there named
copyparty, in other words/configs/cpp/copypartywhich you should leave alone; that's where copyparty stores its indexes and other runtime config
recommended copyparty config
open the Package Center and install Text Editor (by Synology Inc.) to create and edit your copyparty config:
- note the
copypartyandhistfolders in that screenshot which are autogenerated by copyparty and to be left alone
[global]
e2d, e2t # remember uploads & read media tags
rss, daw, ver # some other nice-to-have features
#dedup # you may want this, or maybe not
hist: /cfg/hist # don't pollute the shared-folder
name: synology # shows in the browser, can be anything
[accounts]
ed: wark # username ed, password wark
[/] # share the following at the webroot:
/w # the "/w" docker-volume (the shared-folder)
accs:
A: ed # give Admin to username ed
# hide the synology system files by creating a hidden volume
[/@eaDir]
/w/@eaDir
if you ever change the copyparty config file, then restart the container to make the changes take effect
okay now continue with one of these:
DSM v7.2 or newer
Docker was replaced by Container Manager in DSM v7.2 but they're almost the same thing;
- open the
Package Centerand install the Container Manager package byDocker Inc. - open the
Container Managerapp - go to the
Registrytab and search forcopyparty - doubleclick copyparty/ac and keep the default
latestwhen it asks you which tag to use - switch to the
Containertab and clickCreate - choose
copyparty/ac:latestand clickNext
finally, in the Advanced Settings window,
- under
Port Settings, type3923into theLocal Porttextbox - click
Add Folderand select/configs/cppon your nas (thecppfolder in theconfigsshared-folder), and changeMount pathto/cfg - click
Add Folderand select/media1on your nas (the shared-folder that copyparty can share in its web-UI) and changeMount pathto/w- if you are adding multiple shared-folders for media, then the
Mount pathof the 2nd folder should be something like/w/share2or/w/music
- if you are adding multiple shared-folders for media, then the
copyparty will launch and become available at http://192.168.1.9:3923/ (assuming 192.168.1.9 is your nas ip)
DSM v6.x, DSM v7.1.x or older
if you're using DSM 7.1 or older, then you don't have Container Manager yet and you'll have to use Docker instead. Here's how:
- open the
Package Centerand install the Docker package byDocker Inc. - open the
Dockerapp - go to the
Registrytab and search forcopyparty - doubleclick copyparty/ac and keep the default
latestwhen it asks you which tag to use - switch to the
Containertab and clickCreate - choose
copyparty/ac:latestandNext - in the Network window, keep the default
Use the selected networks: [x] bridge - in the General Settings window, just keep everything default (in other words, everything disabled)
- in the Port Settings window, change
Local Portto3923(or choose something else, but it cannot be the defaultAuto)
finally, in the Volume Settings window, add a docker volume for copyparty config, and at least one volume for media-files which copyparty can share in its web-UI
- click
Add Folderand select/configs/cppon your nas (thecppfolder in theconfigsshared-folder), and changeMount pathto/cfg - click
Add Folderand select/media1on your nas (the shared-folder that copyparty can share in its web-UI) and changeMount pathto/w - if you are adding multiple shared-folders for media, then the
Mount pathof the 2nd folder should be something like/w/share2or/w/music
copyparty will launch and become available at http://192.168.1.9:3923/ (assuming 192.168.1.9 is your nas ip)
misc notes
note that if you only want to share some folders inside your data volume, and not all of it, then you can either give copyparty the whole shared-folder anyways and control/restrict access in the copyparty config file (recommended), or you can add each folder as a new docker volume (not as flexible)
updating
to update to a new copyparty version: Container Manager » Images » Update available » Update
-
DSM checks for updates every 12h; you can force a check with
sudo /var/packages/ContainerManager/target/tool/image_upgradable_checker -
there is no auto-update feature, and beware that watchtower does not support DSM
regarding ram usage
the ram usage indicator in both Docker and Container Manager is misleading because it also counts the kernel disk cache which makes the number insanely high -- the synology resource monitor shows the correct values, usually less than 100 MiB
to see the actual memory usage by copyparty, see Resource Monitor -> Task Manager -> Processes and look at the Private Memory of python3 which is probably copyparty
regarding performance
when uploading files to the synology nas with the respective web-UIs,
-
File Stationdoes about 16 MiB/s, -
Synology Drive Serverdoes about 50 MiB/s; deceivingly fast upload speeds at first, but when the file is fully uploaded, there is a lengthy "processing" step at the end, reducing the average speed to about 50% of the initial -
copyparty maxes the HDD write-speeds, 99 MiB/s
when uploading to the synology nas over webdav,
-
WebDAV ServerbySynology Inc.in the Package Center does 86 MiB/s -
copyparty does 79 MiB/s; the NAS CPU is a bottleneck because copyparty verifies the upload checksum while
WebDAV Serverdoesn't

