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/
| Name | Value | Example |
|---|---|---|
| DATA_DIR | Folder for DirSyncPro | /dirsyncpro |
| REMOTE_DIR | Depending 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_TYPE | Currently 'local', 'smb', 'ftp' and 'webdav' are available | local |
| REMOTE_USER | Remote username (must be provided - not for 'local') | username |
| REMOTE_PWD | Remote password (must be provided - not for 'local') | password |
| CRYFS | Set to 'true' if you want encryption with CryFS | true |
| CRYFS_PWD | Set the encryption password for CryFS | password |
| CRYFS_BLOCKSIZE | Set the blocksize for your files in bytes (262144 Byte = 256 KiB) | 262144 |
| CRYFS_EXTRA_PARAMETERS | Extra parameters for CryFS if needed, otherwise leave blank | --unmount-idle 30 |
| RUNTIME_NAME | Runtime name (must be profided) | jre1.8.0_211 |
| DL_URL | Download URL for DirSyncPro | https://sourceforge.net/projects/directorysync/files... |
| CMD_MODE | Set to 'true' if you want to use command line mode (otherwise blank) | |
| CMD_FILE | Specify the CMD file without the .dsc extension (only for CMD_MODE) | |
| UID | User Identifier | 99 |
| GID | Group Identifier | 100 |
NOTE This Docker must be started with the follwoing parameters '--cap-add SYS_ADMIN', '--cap-add DAC_READ_SEARCH', and '--privileged=true'
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
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.
Please check also the DirSyncPro Developers (O. Givi) website out: https://www.dirsyncpro.org/ and the website from CryFS: https://www.cryfs.org/
Content type
Image
Digest
sha256:581c894af…
Size
250.8 MB
Last updated
10 months ago
docker pull ich777/dirsyncpro