JottaCloud has a unlimited storage plan for $10 a month and they support FreeBSD, I thought it would be perfect on FreeNAS. I have been looking for a backup solution on FreeNAS for ages, can't believe I missed this one. Its pretty easy to setup as well.
Thanks to jinie on github for the rcscript and install guidelines.
https://www.jottacloud.com/en/
Create the iocage jail(Edit ip and router ip) :
Login to the jail:
Lets create the RC script:
Edit/create the file:
Copy the contents below to that file:
Run the following commands to get it all setup:
OK, ALL DONE!!
Start Jottacloud with
How to use it:
Start with creating a jotta account on their website, free or paid.
Login by using
After logging in, to add a folder to backup use:
To remove a folder from the watch directory use
When in doubt about whats added, syncing etc use the command
Thanks to jinie on github for the rcscript and install guidelines.
https://www.jottacloud.com/en/
Create the iocage jail(Edit ip and router ip) :
Code:
iocage create -n jotta -r 12.2-RELEASE ip4_addr="vnet0|192.168.1.11/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on"
Login to the jail:
Code:
iocage console jotta
Lets create the RC script:
Edit/create the file:
Code:
ee /jottad
Copy the contents below to that file:
Code:
#!/bin/sh
# PROVIDE: jottad
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name=jottad
rcvar=jottad_enable
command="/usr/local/bin/${name}"
command_args="datadir /usr/local/etc/jottad &"
pidfile="/var/run/${name}.pid"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
jottad_start()
{
if [ -e ${pidfile} ];
then
echo "${name} is already running"
else
echo "Starting ${name}"
/usr/sbin/daemon -p ${pidfile} ${command}
fi
}
jottad_stop()
{
if [ -e ${pidfile} ];
then
echo "Stopping ${name}"
kill `cat ${pidfile}`;
sleep 1
else
echo "${name} is not running"
fi
}
load_rc_config $name
run_rc_command "$1"
Run the following commands to get it all setup:
Code:
pkg install -y mono sqlite3 ca_root_nss wget cd / && wget https://repo.jotta.us/archives/freebsd/amd64/jotta-cli-0.10.42740_freebsd_amd64.tar.gz tar -xvf jotta-cli*.tar.gz cp /usr/bin/jottad /usr/local/bin/ cp /usr/bin/jotta-cli /usr/local/bin/ chmod +x /usr/local/bin/jottad chmod +x /usr/local/bin/jotta-cli mkdir /usr/local/etc/jottad mkdir /usr/local/etc/rc.d/ cp /jottad /usr/local/etc/rc.d/jottad chmod u+x /usr/local/etc/rc.d/jottad sysrc jottad_enable=YES sed -i '' 's#Datadir=.*#Datadir=/usr/local/etc/jottad#' /etc/jottad/config.ini echo "To start use service jottad start"
OK, ALL DONE!!
Start Jottacloud with
Code:
service jottad start
How to use it:
Start with creating a jotta account on their website, free or paid.
Login by using
jotta-cli loginAfter logging in, to add a folder to backup use:
jotta-cli add 'path/to/file'To remove a folder from the watch directory use
jotta-cli rem '/path/to/remove'When in doubt about whats added, syncing etc use the command
jotta-cli status
Last edited: