Skip to content

PossessedC0bra/fhnw-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FHNW-Sync

A docker container that runs a cron job, which automatically connects to a vpn, mounts a given file server and copies the specified folders to its filesystem.

Important Note:

This container has to be started with extended privileges. This is due to the container opening vpn tunnels which are only available in the privileged mode.

Configurations

Volumes:

  • /srv the location where all the data will be copied to. Don't forget to mount this folder to your host filesystem to persist the data!

Environment Variables:

  • CRON_SCHEDULE The cron schedule defining when the sync job is run. (Default: 0 9-17 * * *)
  • USERNAME The username used for authentication with the VPN client and file share
  • PASSWORD The password used for authentication with the VPN client and file share
  • VPN_URL The url used by the vpn client
  • SHARE_PATH the path which should be mounted inside the docker container
  • FOLDERS a space seperated list of folders that will be copied to the filesystem

About

A simple docker container for syncing files only accessible with a VPN connection

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors