tapo-cli is a command-line utility designed to streamline the process of batch-downloading your videos from the Tapo TP-Link Cloud.
Please note that this utility has not been tested on Windows systems. It is recommended to utilize the Windows Subsystem for Linux (WSL) for Windows users.
The utility is compatible with any Debian-based operating system that has python3
and pip3
installed.
To begin using Tapo-CLI, follow these steps:
git clone https://github.com/dimme/tapo-cli.git
cd tapo-cli
pip3 install -r requirements.txt
chmod +x tapo-cli.py
./tapo-cli.py login
./tapo-cli.py list-videos
./tapo-cli.py download-videos
For additional information and options, please refer to ./tapo-cli.py --help
and ./tapo-cli.py [COMMAND] --help
.
To automate daily backups on Windows, create a .bat
file with the following content and schedule it to run once per day using Task Scheduler:
ubuntu.exe run "/home/<user>/tapo-cli/tapo-cli.py download-videos --days 7 --path /mnt/c/TapoBackups --overwrite 0"
This process requires the Windows Subsystem for Linux (WSL). You may also choose to schedule the task to run upon system logon.
To automate daily backups on Linux, create a cron task by executing:
sudo crontab -e
Then, append a line similar to the one below, adjusted to match your specific paths:
30 4 * * * <user> /home/<user>/tapo-cli/tapo-cli.py download-videos --days 7 --path /home/<user>/TapoBackups --overwrite 0
This will schedule the task to run at 4:30 AM every day.