Sign inSign up

b2un0/rsync

By b2un0

Updated 3 months ago

Image
0

50K+

b2un0/rsync repository overview

docker rsync

Docker Pulls Docker Stars MicroBadger Size

simple docker container to sync some stuff with specific rsync options

docker-compose.yml example

services:
    something:
        image: b2un0/rsync:latest
        restart: unless-stopped
        network_mode: bridge
        # command: "file-sync" # for testing purpose
        volumes:
            - /here/get/my/stuff/:/here/get/my/stuff/:ro
            - ./config/syncer.list:/tmp/include.list:ro
            - ~/.ssh/id_ed25519:/tmp/ssh_key:ro
        environment:
            SCHEDULE: "15 3 * * *" # https://crontab.guru/
            HOST: "some.target.tld"
            PORT: 1337
            LOGIN: "syncer"
            SOURCE: "/here/get/my/stuff/"
            TARGET: "/volume1/stuff/"
            SSH_OPTIONS: "-i /tmp/ssh_key -o StrictHostKeyChecking=no"
            # RSYNC_OPTIONS: "--rsync-path=/bin/rsync" # required for synology example
            # RSYNC_OPTIONS: "--list-only"
            # RSYNC_OPTIONS: "--dry-run"

/config/syncer.list rsync include list

+ Folder_A/***

+ Folder_B/Every***

+ Folder_C/BLA.ext

+ Folder_D/
+ Folder_D/SUB_FOLDER/***

Tag summary

Content type

Image

Digest

sha256:e6990c480

Size

6.9 MB

Last updated

3 months ago

docker pull b2un0/rsync