Sign inSign up

ich777/dirsyncpro

By ich777

•Updated 10 months ago

Image
4

100K+

ich777/dirsyncpro repository overview

⁠DirSyncPro in Docker optimized for Unraid

This Docker will download and install DirSyncPro. You can sync your files to another offsite SMB, FTP and WebDAV share with encryption by CryFS. You can also use this tool to duplicate your files on the server to another directory.

Also there is a commandline mode without the GUI, please be sure that you put your config file in the main directory of the Docker and specify it without the '.dsc' extension.

Encryption by CryFS is also supported if you want to sync your files to an external server and have extra security (see the Run example with encryption by CryFS). CryFS splits (according to the set blocksize) and encrypts your files with aes-256-gcm and your choosen password.

Please also check out the Developers website of DirSyncPro: https://www.dirsyncpro.org/⁠ and from CryFS: https://www.cryfs.org/⁠

⁠Env params

NameValueExample
DATA_DIRFolder for DirSyncPro/dirsyncpro
REMOTE_DIRDepending on the Remote Type fill in your connection informations for local: 'leave empty' - smb: '192.168.1.1/backup' - ftp: '192.168.1.1' - webdav: 'https://nextcloud.host.com/remote.php/webdav⁠'192.168.1.1
REMOTE_TYPECurrently 'local', 'smb', 'ftp' and 'webdav' are availablelocal
REMOTE_USERRemote username (must be provided - not for 'local')username
REMOTE_PWDRemote password (must be provided - not for 'local')password
CRYFSSet to 'true' if you want encryption with CryFStrue
CRYFS_PWDSet the encryption password for CryFSpassword
CRYFS_BLOCKSIZESet the blocksize for your files in bytes (262144 Byte = 256 KiB)262144
CRYFS_EXTRA_PARAMETERSExtra parameters for CryFS if needed, otherwise leave blank--unmount-idle 30
RUNTIME_NAMERuntime name (must be profided)jre1.8.0_211
DL_URLDownload URL for DirSyncProhttps://sourceforge.net/projects/directorysync/files⁠...
CMD_MODESet to 'true' if you want to use command line mode (otherwise blank)
CMD_FILESpecify the CMD file without the .dsc extension (only for CMD_MODE)
UIDUser Identifier99
GIDGroup Identifier100

NOTE This Docker must be started with the follwoing parameters '--cap-add SYS_ADMIN', '--cap-add DAC_READ_SEARCH', and '--privileged=true'

⁠Run example

docker run --name DirSyncPro -d \
    -p 8080:8080 \
    --env 'REMOTE_TYPE=smb' \
    --env 'REMOTE_DIR=192.168.1.1' \
    --env 'REMOTE_USER=username' \
    --env 'REMOTE_PWD=password' \
    --env 'RUNTIME_NAME=jre1.8.0_211 \
    --env 'DL_URL=https://sourceforge.net/projects/directorysync/files/DirSync Pro (stable)/1.53/DirSyncPro-1.53-Linux.tar.gz' \
    --env 'UID=99' \
    --env 'GID=100' \
    --volume /mnt/user/appdata/dirsyncpro:/dirsyncpro \
    --privileged=true \
    --cap-add SYS_ADMIN \
    --cap-add DAC_READ_SEARCH \
    --restart=unless-stopped \
    ich777/dirsyncpro

⁠Run example with encryption by CryFS

docker run --name DirSyncPro -d \
    -p 8080:8080 \
    --env 'REMOTE_TYPE=smb' \
    --env 'REMOTE_DIR=192.168.1.1' \
    --env 'REMOTE_USER=username' \
    --env 'REMOTE_PWD=password' \
    --env 'CRYFS=true' \
    --env 'CRYFS_PWD=password' \
    --env 'CRYFS_BLOCKSIZE=262144' \
    --env 'RUNTIME_NAME=jre1.8.0_211 \
    --env 'DL_URL=https://sourceforge.net/projects/directorysync/files/DirSync Pro (stable)/1.53/DirSyncPro-1.53-Linux.tar.gz' \
    --env 'UID=99' \
    --env 'GID=100' \
    --volume /mnt/user/appdata/dirsyncpro:/dirsyncpro \
    --privileged=true \
    --cap-add SYS_ADMIN \
    --cap-add DAC_READ_SEARCH \
    --restart=unless-stopped \
    ich777/dirsyncpro

ENCRYPTION NOTE: The mounted folder will be automaticaly encrypted (smb: '/mnt/smb' - ftp: '/mnt/ftp' - webdav: '/mnt/webdav' - local: if you set the type to 'local' you must set the container mountpoint to: '/mnt/local'). Please also note if you set up a encrypted share for the first time the destination folder should be empty since CryFS will create a folder with the basic information for the encryption and all the split files (don't delete any folder since it can corrupt files). The docker will automaticaly create a directory named 'cryfs' in the main directory of DirSyncPro, please copy the 'cryfs.cfg' to a save place since you will need this file and your selected password for CryFS to decrypt the files. Restoring of encrypted files on another computer/server with this Docker: start the container once with CryFS enabled but set no password, the container will start and create the 'cryfs' directory, stop the container copy your cryfs.cfg in the 'cryfs' folder edit the Docker and set the apropriate password and blocksize for the cryfs.cfg and restart the Docker. Now you can sync from/or to your encrypted share again.

⁠Webgui address: http://[SERVERIP]:[PORT]/vnc_auto.html

Please check also the DirSyncPro Developers (O. Givi) website out: https://www.dirsyncpro.org/⁠ and the website from CryFS: https://www.cryfs.org/⁠

⁠Support Thread: https://forums.unraid.net/topic/83786-support-ich777-application-dockers/⁠

Tag summary

Content type

Image

Digest

sha256:581c894af…

Size

250.8 MB

Last updated

10 months ago

docker pull ich777/dirsyncpro