mirror of
https://github.com/cimryan/teslausb.git
synced 2026-02-28 20:20:32 +00:00
Skip configuring the archive if the user didn't pick an archive system.
This commit is contained in:
@@ -19,7 +19,7 @@ These instructions will speed you through the process with good defaults. If you
|
||||
```
|
||||
1. Run these commands:
|
||||
```
|
||||
export RCLONE_ENABLE=true
|
||||
export ARCHIVE_SYSTEM=rclone
|
||||
export RCLONE_DRIVE=gdrive
|
||||
export RCLONE_PATH=TeslaCam
|
||||
|
||||
@@ -86,8 +86,6 @@ Confirm that the directory `TeslaCam` is present. If not, start over.
|
||||
# Step 4: Exports
|
||||
Run this command to cause the setup processes which you'll resume in the main instructions to use rclone4pi:
|
||||
```
|
||||
export RCLONE_ENABLE=true
|
||||
export ARCHIVE_SYSTEM=rclone
|
||||
```
|
||||
**Note:** `RCLONE_ENABLE=true` is going to disable the default archive server. It also will **not** play nicely with `RSYNC_ENABLE=true` Perhaps future releases will allow both to be defined and function at the same time, for redundancy, but for now just pick one that you'll want the most.
|
||||
|
||||
Now return to the section "Set up the USB storage functionality" in the [main instructions](../README.md).
|
||||
|
||||
@@ -30,20 +30,20 @@ Similar to sftp, rsync by default uses ssh to connect to a remote server and tra
|
||||
Run this command to cause the setup processes which you'll resume in the main instructions to use rsync:
|
||||
|
||||
```
|
||||
export RSYNC_ENABLE=true
|
||||
export ARCHIVE_SYSTEM=rsync
|
||||
export RSYNC_USER=<ftp username>
|
||||
export RSYNC_SERVER=<ftp IP/host>
|
||||
export RSYNC_PATH=<destination path to save in>
|
||||
```
|
||||
Explanations for each:
|
||||
* `RSYNC_ENABLE`: `true` for enabling rsync
|
||||
* `ARCHIVE_SYSTEM`: `rsync` for enabling rsync
|
||||
* `RSYNC_USER`: The user on the FTP server
|
||||
* `RSYNC_SERVER`: The IP address/hostname of the destination machine
|
||||
* `RSYNC_PATH`: The path on the destination machine where the files will be saved
|
||||
|
||||
An example config is below:
|
||||
```
|
||||
export RSYNC_ENABLE=true
|
||||
export ARCHIVE_SYSTEM=rsync
|
||||
export RSYNC_USER=pi
|
||||
export RSYNC_SERVER=192.168.1.254
|
||||
export RSYNC_PATH=/mnt/PIHDD/TeslaCam/
|
||||
|
||||
@@ -23,6 +23,7 @@ Now, on the Pi:
|
||||
1. Run these commands, subsituting your values:
|
||||
```
|
||||
sudo -i
|
||||
export ARCHIVE_SYSTEM="cifs"
|
||||
export archiveserver="Nautilus"
|
||||
export sharename="SailfishCam"
|
||||
export shareuser="sailfish"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
######################################################################
|
||||
|
||||
# Default variables for CIFS (Windows/Mac file sharing) setup
|
||||
export ARCHIVE_SYSTEM=cifs
|
||||
export archiveserver=your_archive_name_or_ip
|
||||
export sharename=your_archive_share_name
|
||||
export shareuser=username
|
||||
@@ -33,11 +34,3 @@ export HEADLESS_SETUP=true
|
||||
|
||||
# Uncomment and change if you want a different branch than master
|
||||
# export BRANCH=master
|
||||
|
||||
# Uncomment if you're using rsync/ssh for the archive.
|
||||
# Note: RSYNC is not usable for headless setup since it currently requires a manual step.
|
||||
# Note: RSYNC_ENABLE=true is going to disable the default archive server.
|
||||
# export RSYNC_ENABLE=true
|
||||
# export RSYNC_USER=<ftp username>
|
||||
# export RSYNC_SERVER=<ftp IP/host>
|
||||
# export RSYNC_PATH=<destination path to save in>
|
||||
Reference in New Issue
Block a user