initial commit
This commit is contained in:
41
config.example.yaml
Normal file
41
config.example.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
watch:
|
||||||
|
# Directory to watch for new/changed media files
|
||||||
|
path: "/mnt/ipfsxfs/sabnzbd/downloads/complete"
|
||||||
|
# Watch subdirectories too
|
||||||
|
recursive: true
|
||||||
|
# How long the file size must remain unchanged before it is considered "stable" (seconds)
|
||||||
|
stable_seconds: 15
|
||||||
|
# Optional patterns to include (empty means include everything)
|
||||||
|
include_globs:
|
||||||
|
- "*.mkv"
|
||||||
|
- "*.mp4"
|
||||||
|
- "*.avi"
|
||||||
|
- "*.flac"
|
||||||
|
- "*.mp3"
|
||||||
|
# Optional patterns to exclude
|
||||||
|
exclude_globs:
|
||||||
|
- "*.part"
|
||||||
|
- "*.tmp"
|
||||||
|
- "*.crdownload"
|
||||||
|
|
||||||
|
transfer:
|
||||||
|
method: "rsync"
|
||||||
|
|
||||||
|
rsync:
|
||||||
|
binary: "/usr/bin/rsync"
|
||||||
|
|
||||||
|
ssh_user: "media"
|
||||||
|
ssh_host: "10.0.0.50"
|
||||||
|
ssh_port: 22
|
||||||
|
|
||||||
|
# Destination directory on remote server
|
||||||
|
dest_path: "/f2fs_mnt/incoming"
|
||||||
|
|
||||||
|
# Extra rsync args (these are good defaults for large media files)
|
||||||
|
extra_args:
|
||||||
|
- "--partial"
|
||||||
|
- "--inplace"
|
||||||
|
- "--progress"
|
||||||
|
|
||||||
|
logging:
|
||||||
|
level: "info" # "debug" | "info" | "error"
|
||||||
41
config.yaml
Normal file
41
config.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
watch:
|
||||||
|
# Directory to watch for new/changed media files
|
||||||
|
path: "/mnt/ipfsxfs/sabnzbd/downloads/complete"
|
||||||
|
# Watch subdirectories too
|
||||||
|
recursive: true
|
||||||
|
# How long the file size must remain unchanged before it is considered "stable" (seconds)
|
||||||
|
stable_seconds: 15
|
||||||
|
# Optional patterns to include (empty means include everything)
|
||||||
|
include_globs:
|
||||||
|
- "*.mkv"
|
||||||
|
- "*.mp4"
|
||||||
|
- "*.avi"
|
||||||
|
- "*.flac"
|
||||||
|
- "*.mp3"
|
||||||
|
# Optional patterns to exclude
|
||||||
|
exclude_globs:
|
||||||
|
- "*.part"
|
||||||
|
- "*.tmp"
|
||||||
|
- "*.crdownload"
|
||||||
|
|
||||||
|
transfer:
|
||||||
|
method: "rsync"
|
||||||
|
|
||||||
|
rsync:
|
||||||
|
binary: "/usr/bin/rsync"
|
||||||
|
|
||||||
|
ssh_user: "media"
|
||||||
|
ssh_host: "10.0.0.50"
|
||||||
|
ssh_port: 22
|
||||||
|
|
||||||
|
# Destination directory on remote server
|
||||||
|
dest_path: "/f2fs_mnt/incoming"
|
||||||
|
|
||||||
|
# Extra rsync args (these are good defaults for large media files)
|
||||||
|
extra_args:
|
||||||
|
- "--partial"
|
||||||
|
- "--inplace"
|
||||||
|
- "--progress"
|
||||||
|
|
||||||
|
logging:
|
||||||
|
level: "info" # "debug" | "info" | "error"
|
||||||
0
internal/config/config.go
Normal file
0
internal/config/config.go
Normal file
0
internal/transfer/rsync.go
Normal file
0
internal/transfer/rsync.go
Normal file
0
internal/watcher/watcher.go
Normal file
0
internal/watcher/watcher.go
Normal file
0
mediawatcher.service
Normal file
0
mediawatcher.service
Normal file
Reference in New Issue
Block a user