Sign inSign up

jaco1960/jottacloud

By jaco1960

•Updated about 5 years ago

Jottacloud backup

Image
6

10K+

jaco1960/jottacloud repository overview

⁠rockstor-jottacloud

Docker Automated build Docker Pulls

UPDATES 2021-07-03

  • fixed issue where new logins where not possible due to a change in the jotta-cli client

UPDATES 2019-12-28

  • Support for the new personal token based login method
  • Auto update of the JottaCloud client when the container starts

This container provides the JottaCloud cli for backup to the JottaCloud service. You need to provide:

  • your Jottacloud personal login token and device name
  • a path to a timezone file to configure the docker timezone (this should be the same timezone as the system you backup)
  • a scan interval for jotta-cli
  • a volume to mount for the config directory that holds an optional global ignore file
  • One or more volumes to mount with the files you want to backup
  • UID of the group and user for the jottad deamon to run

Backup your NAS volumes to Jottacloud⁠ using the jotta-cli command line tool⁠.
You can add multiple NAS volumes to the container for backup.

Jottacloud⁠ is a Norwegion service providing storage and backup services. Jottacloud unlimited subscription is low priced, making it an interesting backup option.

The jotta-cli command line tool⁠ is software designed for running on servers or headless systems. It is additional to the Jottacloud Client that integrates with your OS or mobile device to provide a cloud drive service.

⁠Run container from Docker registry

The container is available from the Docker registry and this is the simplest way to get it. To run the container use this command:

$ docker run -d \
	-v /your/config/path/:/config \
	-v /your/backup/path1/:/backup/path1 \
	-e JOTTA_TOKEN=yourverylongjottacloudtoken \
	-e JOTTA_DEVICE=devicename \
	-e JOTTA_SCANINTERVAL=scaninterval\
	-e LOCALTIME=path_to_time_zonefile
	-e PUID=ID of user for running Jottad \
	-e PGID=ID of group for running Jottad
	-e RE_INIT=false|true
	-p 14443:14443 \
	jaco1960/jottacloud

You can add as many backup paths as you want, by adding a volume entry per backup path and 
mapping this to a folder within the backup foler, e.g.: -v /your/backup/pathX/:/backup/pathX

⁠Required environment options
VariableFunctionExample
JOTTA_TOKENYour JottaCloud personal login tokenJOTTA_TOKEN=yourverylongjottacloudtoken
JOTTA_DEVICEThe Device name for the JottaCloud backupsJOTTA_DEVICE=MyDevice
JOTTA_SCANINTERVALThe scaninterval for the JottaCloud backupsJOTTA_SCANINTERVAL=1h
LOCALTIMEThe path to the timezone file in the docker imageLOCALTIME=/usr/share/zoneinfo/Europe/Amsterdam

For more information on the timezone file see https://packages.debian.org/sid/all/tzdata/filelist⁠

⁠IMPORTANT:

Your JottaCloud personal login token can only be used once and for a short period of time to login. When you setup the docker, make sure you are using a fresh generated token from Jottacloud. Once the docker is logged in, it will remain logged in after restarts.

⁠Optional configuration options

By default everything will run as the jottad user. However, it is possible to change who runs the jottad process. You may set the following parameters to customize the user id that runs the jottad deamon and the group id.

VariableFunctionExample
PUIDSets the user id who will run jottadPUID=101
PGIDSets the group id for the jottad userPGID=101

You can provide a global ignore file to have jotta ignore files and folders for backup. For more information see https://docs.jottacloud.com/en/articles/1437235-ignoring-files-and-folders-from-backup-with-jottacloud-cli⁠

You should place your file in the config volume and name it "ignorefiles". For a Synology NAS a sample file that ignores the Synology recycle bin folder is:

# Created by https://www.gitignore.io/api/osx
### OSX ###
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
*/._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# End of https://www.gitignore.io/api/osx
###Synology DiskStation###
# Recycle bin folder
\#recycle

Tag summary

Content type

Image

Digest

Size

72.4 MB

Last updated

about 5 years ago

docker pull jaco1960/jottacloud