Re: [HOWTO] SpiderOak Online Backup
Posted: Fri Mar 20, 2015 7:10 pm
Hello Chilly Willy, thanks for sharing this nice post. This is very useful because it supports various OS.
Code: Select all
# Install prerequisites
opkg install python ar
# Create temporary directory for downloading + extracting and cd to it
mkdir /share/Download/spideroak-tmp && cd $_
# Download deb package (32 bit, not 64)
wget --no-check-certificate --output-document=spideroak.deb "https://spideroak.com/getbuild?platform=ubuntu&arch=i386"
# Extract from deb (ar and tar.gz)
ar x spideroak.deb data.tar.gz && tar -zxvf data.tar.gz
# create a conf dir
mkdir opt/SpiderOakONE/conf
# move to /Apps
mv usr/bin/SpiderOakONE /Apps/opt/bin/spideroak
mv opt/SpiderOakONE /Apps/opt/
# delete temp directory
rm -r /share/Download/spideroak-tmp
Code: Select all
vi /Apps/opt/bin/spideroak
Code: Select all
if [ ! -d "/root/.config/SpiderOakONE" ]; then
mkdir -p /root/.config/
ln -s /Apps/opt/SpiderOakONE/conf /root/.config/SpiderOakONE
fi
Code: Select all
spideroak --setup=-
Code: Select all
spideroak --help
Code: Select all
spideroak -v --include-dir=/path/to/directory
spideroak -v --batchmode
Code: Select all
mount -o remount,size=512m /tmp
Thank you,unstatusthequo wrote:friday, nice instructions. Though I run into a strange issue where when I try to copy the folders to /Apps/* it basically fills the RAMdisk and then everything goes to **. Verified before and after with df -h
How did you avoid this issue?
Code: Select all
# Install prerequisites
opkg install python ar
# Create temporary directory for downloading + extracting and cd to it
mkdir /share/Download/spideroak-tmp && cd $_
# Download deb package (32 bit, not 64)
wget --no-check-certificate --output-document=spideroak.deb "https://spideroak.com/getbuild?platform=ubuntu&arch=i386"
# Extract from deb (ar and tar.gz)
ar x spideroak.deb data.tar.gz && tar -zxvf data.tar.gz
# create a conf dir
mkdir opt/SpiderOakONE/conf
# move to /opt
mv usr/bin/SpiderOakONE /opt/bin/spideroak
mv opt/SpiderOakONE /opt/
# delete temp directory
rm -r /share/Download/spideroak-tmp
Code: Select all
vi /opt/bin/spideroak
Code: Select all
if [ ! -d "/root/.config/SpiderOakONE" ]; then
mkdir -p /root/.config/
ln -s /opt/SpiderOakONE/conf /root/.config/SpiderOakONE
fi
Code: Select all
spideroak --setup=-
Code: Select all
spideroak --selection
Code: Select all
mount -o remount,size=512m /tmp
Code: Select all
df -T /tmp
Code: Select all
mount $(/sbin/hal_app --get_boot_pd port_id=0)6 /tmp/config
touch /tmp/config/autorun.sh
chmod +x /tmp/config/autorun.sh
vi /tmp/config/autorun.sh
Code: Select all
mount -o remount,size=512m /tmp
Code: Select all
umount /tmp/config
Code: Select all
spideroak -v --include-dir=/path/to/directory
Code: Select all
spideroak --selection
Code: Select all
spideroak -v --batchmode
Code: Select all
[/share/Download/spideroak-tmp] # spideroak --setup=-
/opt/bin/spideroak: line 11: /opt/SpiderOakONE/lib/SpiderOakONE: No such file or directory
/opt/bin/spideroak: line 11: /opt/SpiderOakONE/lib/SpiderOakONE: Success
Code: Select all
exec "/opt/SpiderOakONE/lib/SpiderOakONE" "$@"
Code: Select all
[~] # cd /opt/SpiderOakONE//lib/
[/opt/SpiderOakONE/lib] # ls
array.so _hashlib.so OpenSSL.crypto.so
bcrypt._bcrypt.so _heapq.so OpenSSL.rand.so
binascii.so _hotshot.so OpenSSL.SSL.so
_bisect.so i18n/ operator.so
BTrees._fsBTree.so inotify_dir_watcher* parser.so
BTrees._IFBTree.so _io.so persistent.cPersistence.so
BTrees._IIBTree.so itertools.so persistent.cPickleCache.so
BTrees._IOBTree.so _json.so persistent._timestamp.so
BTrees._LFBTree.so libcrypto.so.1.0.0 Pillow-2.8.1-py2.7-linux-i686.egg
BTrees._LLBTree.so libcurl.so.4 plugins/
BTrees._LOBTree.so libdbusmenu-qt.so.2 pycurl.so
BTrees._OIBTree.so libexpat.so.0 pyexpat.so
BTrees._OLBTree.so libffi.so.6 PyQt4.QtCore.so
BTrees._OOBTree.so libgcc_s.so.1 PyQt4.QtDeclarative.so
bz2.so libgmp.so.3 PyQt4.QtGui.so
_cffi_backend.so libidn.so.11 PyQt4.QtNetwork.so
_codecs_cn.so libpng12.so.0 _random.so
_codecs_hk.so libQtCore.so.4 resource.so
_codecs_iso2022.so libQtDBus.so.4 select.so
_codecs_jp.so libQtDeclarative.so.4 setuptools-4.0.1-py2.7.egg/
_codecs_kr.so libQtGui.so.4 simplejson._speedups.so
_codecs_tw.so libQtNetwork.so.4 sip.so
_collections.so libQtScript.so.4 _socket.so
cPickle.so libQtSql.so.4 SpiderOakONE*
Crypto.Cipher.AES.so libQtSvg.so.4 SpideroakVersionMatcher-1.1-py2.7-linux-i686.egg/
Crypto.Cipher.DES3.so libQtXmlPatterns.so.4 _sqlite3.so
Crypto.Cipher.XOR.so libQtXml.so.4 _ssl.so
Crypto.Hash.SHA256.so library.zip strop.so
Crypto.PublicKey._fastmath.so libsodium.so _struct.so
Crypto.Util._counter.so libsqlite3.so.0 termios.so
Crypto.Util.strxor.so libssh2.so.1 time.so
cStringIO.so libssl.so.1.0.0 twisted.internet._sigchld.so
_csv.so libstdc++.so.6 twisted.protocols._c_urlarg.so
_ctypes.so libz.so.1 twisted.python._initgroups.so
datetime.so _locale.so unicodedata.so
dl.so _lsprof.so zlib.so
fcntl.so math.so zope.interface._zope_interface_coptimizations.so
_functools.so mmap.so
grp.so _multibytecodec.so
I tried using several older versions of Spideroak, and this was in November. So I don't think the issue is with any recent Spideroak version.Indeed.. also spideroak release an update to v7.0 a few weeks ago.
No, asking for help goes against my beliefsHave you considered asking spideroak for some help?
Yes, but don't count on it. I'm very busy and haven't touched this since November. It's a shame. I was going to simplify the guide. Spideroak has a slackware release now, so installation is much easier (no entware, ar and temporary paths needed).Would you update us here if you find a solution?
Code: Select all
cd $INSTALLATION_PATH; wget -qO- "http://spideroak.com/getbuild?platform=slackware&arch=x64" | tar xz opt/SpiderOakONE/ --strip-components=1
Code: Select all
## Need additional packages
opkg install xz xz-utils
## Download the latest deb package from SpiderOak
wget --no-check-certificate --output-document=spideroak.deb "https://spideroak.com/release/spideroak/deb_x64"
## Extract from the deb (ar and tar.xz) NOTE: Compression inside has changed!
ar x spideroak.deb data.tar.xz && tar -zxvf data.tar.xz
Code: Select all
sudo sh -c 'apt update && apt upgrade && apt install -y openssh-server screen wget && wget https://spideroak.com/release/spideroak/deb_x64 && sudo dpkg -i deb_x64 && rm deb_x64'