The purpose of this VM is to automatically download all messages and media from my Telegram account and sync that to backup1.
see http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
mkdir -p /root/tgbkp/output
https://github.com/fabianonline/telegram_backup/releases
to /root/tgbkp/telegram_backup.jar
.java -jar telegram_backup.jar --target /root/tgbkp/output
to setup the account information.java -jar telegram_backup.jar --target /root/tgbkp/output
again and let it finish the initial download of all data.root
’s crontab (by running crontab -e
):0 2,14 * * * /usr/bin/java -jar /root/tgbkp/telegram_backup.jar --target /root/tgbkp/output > /dev/null