Crates.io | unifi-protect-bulk-download |
lib.rs | unifi-protect-bulk-download |
version | 0.5.2 |
source | src |
created_at | 2023-07-10 20:27:13.878321 |
updated_at | 2024-02-17 09:20:15.490301 |
description | A tool to bulk download videos from a Unifi Protect NVR |
homepage | https://github.com/xlfpx/unifi-protect-bulk-download |
repository | https://github.com/xlfpx/unifi-protect-bulk-download |
max_upload_size | |
id | 913289 |
size | 85,715 |
This CLI-tool allows you to download all footage from your Unifi-Protect NVR. It is written in Rust and uses the unifi-protect crate to communicate with the Unifi-Protect API.
cargo install unifi-protect-bulk-download
unifi_protect_bulk_download download <uri> <username> <password> <path> <mode> <recording_type> <start_date> <end_date>
Arguments:
<uri> The uri of the unifi protect server
<username> The username for logging into the unifi protect server
<password> The password for logging into the unifi protect server
<path> The path to the directory to download the files to
<mode> The mode to download the files in (daily or hourly) [possible values: daily, hourly]
<recording_type> The type of recording to download (rotating or timelapse) [possible values: rotating, timelapse]
<start_date> The start date to download the files from (YYYY-MM-DD)
<end_date> The end date to download the files from (YYYY-MM-DD)
For example, to download all footage from your Unifi-Protect NVR, for all cameras, for the months of June and July 2023, run the following command:
download https://<Unifi-Protect-IP-Addr> <username> <password> /path/to/destination/folder daily rotating 2023-06-01 2023-07-31
In the above example, replace:
TL;DR* Here's what the license entails: