Compiling anything sync daemon

Environment variables
NEW_BUILD_NAME=anything-sync-daemon
NEW_BUILD_VER=5.76
NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER
ls -l /tmp/$NEW_BUILD_NAME-*
ls -l ~/ubuntu_packages/*/$NEW_BUILD_NAME-*
NEW_BUILD_NR=0
# rm -r $HOME/temp/$NEW_BUILD_NAME_AND_VER

Download and unpack
cd $HOME/compile
wget http://repo-ck.com/source/anything-sync-daemon/anything-sync-daemon-5.76.tar.xz
tar xpvf anything-sync-daemon-5.76.tar.xz

Compilation
cd $HOME/compile/anything-sync-daemon-5.76
with systemd use
export DESTDIR=$HOME/temp/$NEW_BUILD_NAME_AND_VER;make V=1 install-systemd-all
with upstart use
export DESTDIR=$HOME/temp/$NEW_BUILD_NAME_AND_VER;make V=1 install-upstart-all

Packaging
cd $HOME/temp
tar czf $NEW_BUILD_NAME_AND_VER.tgz $NEW_BUILD_NAME_AND_VER
will yield e.g. anything-sync-daemon-5.76.tgz

Configuration
check for overlay:
sudo modprobe -c | grep overlay
edit in /etc/asd.conf:
USE_OVERLAYFS="yes"
check defined target directories:
grep -nr WHATTOSYNC /etc/asd.conf
preview mode (parse) command:
asd p
service management commands:
sudo systemctl status asd
sudo systemctl enable asd
sudo systemctl start asd

systemd service customization
use /etc/systemd/system/asd-resync.timer.d/frequency.conf
[Unit]
Description=Timer for Arofile-sync-daemon - 10min
[Timer]
# Empty value resets the list of timers
OnUnitActiveSec=
OnUnitActiveSec=10min

See also https://wiki.archlinux.org/index.php/Anything-sync-daemon.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.