Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker_notes:fileshare [2024-12-22 Sun wk51 11:45] – [privatebin] baumkp | docker_notes:fileshare [2025-01-05 Sun wk01 11:25] (current) – [syncthing] baumkp | ||
---|---|---|---|
Line 2: | Line 2: | ||
======File Sharing====== | ======File Sharing====== | ||
All the applications have pro and cons. This is listed at the beginning of each header. | All the applications have pro and cons. This is listed at the beginning of each header. | ||
+ | |||
+ | There have been considered 3 different levels of access as described by the applications used: | ||
+ | *Nextcloud - a full privately hosted publicly accessible file shareing application, | ||
+ | *Syncthing - A files synchronising system | ||
+ | *Unison - A files synchronising system | ||
+ | *Privatebin - An encrypted file publicly accessible file sharing server | ||
+ | *inotify - A Linux application to provide notification with a file has changed | ||
+ | |||
=====Nextcloud===== | =====Nextcloud===== | ||
+ | Nextcloud is an open source content collaboration platform. | ||
+ | |||
[[https:// | [[https:// | ||
- | My implementation of [[https:// | + | I have been using Nextcloud and before that Owncloud from which Nextcloud was forked since circa 2013. |
+ | *kptree | ||
+ | *kptree [[https:// | ||
=====syncthing===== | =====syncthing===== | ||
Line 11: | Line 23: | ||
Syncthing is a **free and open source** peer-to-peer file synchronization application available for Windows, macOS, Linux, Android, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into its design. Version 1.0 was released in January 2019 after five years in beta. | Syncthing is a **free and open source** peer-to-peer file synchronization application available for Windows, macOS, Linux, Android, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into its design. Version 1.0 was released in January 2019 after five years in beta. | ||
+ | |||
+ | The following is a systemd service file that can be used to start the syncthing service. | ||
+ | ++++syncthing@.service| | ||
+ | < | ||
+ | Description=Syncthing - Open Source Continuous File Synchronization for %I | ||
+ | Documentation=man: | ||
+ | After=network.target | ||
+ | StartLimitIntervalSec=60 | ||
+ | StartLimitBurst=4 | ||
+ | |||
+ | [Service] | ||
+ | User=%i | ||
+ | ExecStart=/ | ||
+ | Restart=on-failure | ||
+ | RestartSec=1 | ||
+ | SuccessExitStatus=3 4 | ||
+ | RestartForceExitStatus=3 4 | ||
+ | |||
+ | # Hardening | ||
+ | ProtectSystem=full | ||
+ | PrivateTmp=true | ||
+ | SystemCallArchitectures=native | ||
+ | MemoryDenyWriteExecute=true | ||
+ | NoNewPrivileges=true | ||
+ | |||
+ | # Elevated permissions to sync ownership (disabled by default), | ||
+ | # see https:// | ||
+ | # | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target</ | ||
+ | |||
+ | '' | ||
+ | |||
+ | To use example: '' | ||
====References==== | ====References==== | ||
Line 37: | Line 84: | ||
====Reference==== | ====Reference==== | ||
+ | *The Linux Code [[https:// | ||
+ | *Arch Linux [[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
Line 44: | Line 96: | ||
=====privatebin===== | =====privatebin===== | ||
[[https:// | [[https:// | ||
- | + | ====Reference==== | |
- | [[https:// | + | |
- | + | *[[https:// | |
- | ---- | + | |
=====inotify===== | =====inotify===== | ||
*[[https:// | *[[https:// | ||
+ | ---- | ||
- | <- docker_notes: | + | <- docker_notes: |