Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


This is an init script to run the hubiC client as a service in a non graphic environment. The service runs as the hubic user. For the uninitiated, hubiC is a cloud storage provider that offers very reasonable prices (5 euro/month for 10TB) for backup needs and a Linux client that can run on the server.


  • start|stop|restart
  • reload : update the sync directory and the exclusions list
  • supports backup of directories (after manual configuration)
  • supports synchronization



On Debian and Ubuntu, run these commands as root:

git clone
dpkg -i hubic-init-script_*_all.deb

This will install the script ready to be run at boot-time, but you will need to edit the following three files to set various config values:


Utility script

The script can be used to control the hubic process without having to start up a separate, and is meant to be a drop-in replacement for hubic: status backup info

Debugging errors

Consider trying out the standalone client before debugging any errors with the init script:

# start a shell as the hubic user
sudo su -l -s /bin/bash hubic

# export the DBUS environment variable
export $(cat /run/ )

# check that the dbus daemon is actually running
hubic status

# if the daemon was not running, start the daemon like this
dbus-launch --sh-syntax > dbus.dat
source dbus.dat && rm dbus.dat

# source the config variables for use in the next command
source /etc/default/hubic

# you might get "Command failed: System.InvalidOperationException: Already connected." on this. Not dangerous :)
# this should reveal whether you have wrong password, wrong email or missing sync directory
hubic login --password_path=/etc/hubic/password $EMAIL "$SYNC_DIR"

# you should be able to get meaningful output at this stage
hubic status

Backing up directories

These directories need to be readable for the hubic user! We are also assuming hubic has been configured and found working at this point. This configuration only needs to be done once, as the everything will load automatically on each boot after this.

# Read the DBUS session environment variable
export $(cat /run/ )

# check existing backups
sudo -u hubic hubic backup info
     Name  Attached  Local path  Last backup      Size
     Bilder        No           -            -  12.87 GB
     musikkarkiv        No           -            -       0 B
     priv        No           -            -  15.93 GB

# attach the ones that are accessible on this machine, so that they can continue
sudo -u hubic hubic backup attach Bilder /mnt/data/Bilder
sudo -u hubic hubic backup attach priv /mnt/backup/priv/
sudo -u hubic hubic backup attach musikkarkiv /mnt/data/musikkarkiv/

# create any other new backups you might need
sudo -u hubic hubic backup create  --frequency=weekly /mnt/data/video_archive/


No description, website, or topics provided.



No packages published


You can’t perform that action at this time.