summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron-jobs/db-cleanup2
-rw-r--r--db-cleanup.conf9
2 files changed, 8 insertions, 3 deletions
diff --git a/cron-jobs/db-cleanup b/cron-jobs/db-cleanup
index de92e21..fc7fd25 100755
--- a/cron-jobs/db-cleanup
+++ b/cron-jobs/db-cleanup
@@ -40,7 +40,7 @@ done | cut -d'/' -f1 | sort -u | sed "s|$|*|" > "$filter"
msg "Removing old files:"
-for POOL in "${PKGPOOLS[@]}" "${SRCPOOLS[@]}"; do
+for POOL in "${PKGPOOLS[@]}" "${SRCPOOLS[@]}" "${TORRENTPOOLS[@]}"; do
msg2 '%s' "${POOL}"
rsync "${EXTRAFLAGS[@]}" -va --delete-excluded \
diff --git a/db-cleanup.conf b/db-cleanup.conf
index 12d65f9..9944438 100644
--- a/db-cleanup.conf
+++ b/db-cleanup.conf
@@ -1,6 +1,6 @@
#!/hint/bash
-# Both PKGPOOLS and SRCPOOLS are relative to `config:FTP_BASE`.
+# All `*POOLS` variables are relative to `config:FTP_BASE`.
# Directories where packages are shared between repos
PKGPOOLS=(
@@ -11,7 +11,7 @@ PKGPOOLS=(
pool/community # Arch Linux (community)
)
-# Directories where sources are stored
+# Directories where source-packages are stored
SRCPOOLS=(
sources/parabola # Parabola GNU/Linux-libre
sources/alarm # Arch Linux ARM
@@ -19,3 +19,8 @@ SRCPOOLS=(
sources/packages # Arch Linux (project)
sources/community # Arch Linux (community)
)
+
+# Directories where torrents are stored
+TORRENTPOOLS=(
+ torrents
+)