Download the PHP package magicalex/rtorrent-cleaner without Composer
On this page you can find all versions of the php package magicalex/rtorrent-cleaner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rtorrent-cleaner
rtorrent-cleaner
rtorrent-cleaner is a tool to clean up unnecessary files in rtorrent
Requirements
- php 5.5.9 and above (php 7.2 recommended)
- php extension:
php-cli
,php-xmlrpc
andphp-mbstring
Installation
Install rtorrent-cleaner from phar file (recommended)
The preferred method of installation is to use the rtorrent-cleaner PHAR which can be downloaded from the most recent
Check GitHub Release.
Install rtorrent-cleaner from composer
Install rtorrent-cleaner in global
Install rtorrent-cleaner from DockerHub
Requirements
- docker install docker
See the details here
Usage
Displaying help:
Command report
for create a report on unnecessary files and missing files:
(Configuration in your rtorrent.rc ex: network.scgi.open_port = localhost:5000
)
Example with a socket (file rtorrent.rc network.scgi.open_local = /home/user/rpc.socket
)
You can log the console output in a file with the option --log (path: ./rtorrent-cleaner.log)
You can define a path (path: /var/log/rtorrent-cleaner.log)
Command rm
for delete unnecessary files in your download folder:
Command mv
for move unnecessary files in a specified folder (ex: /home/user/old) :
Command torrents
for delete torrents or redownload the missing files:
Option for the command mv
, rm
and report
to ignore files: --exclude-files=
The second example excludes all files .sub
and .srt
in the output
Option for the command mv
, rm
and report
to ignore directories: --exclude-dirs=
The directories must be relative to directory default of rtorrent (directory.default
in rtorrent.rc)
The second example excludes the movies
and series
directories
Usage with docker
Environment variables
Variable | Description | Type | Default value |
---|---|---|---|
PHP_MEMORY_LIMIT | Memory limit directive of php | optional | 128M |
PHP_TIMEZONE | Timezone directive of php | optional | UTC |
Info: change <container_name>
by the name of your container of rtorrent
Info: change </home/user/downloads>
by your downloads folder
Info: change </data/downloads>
by directory.default
of rtorrent. See your file rtorrent.rc
Command for displaying help: rtorrent-cleaner
If you use your container with a network you can connect rtorrent-cleaner like this:
Info: change <network_name>
by your network (you can list all the docker networks docker network ls
)
Command for making a report: rtorrent-cleaner report rtorrent:5000
You can increase php memory limit if needed with PHP_MEMORY_LIMIT environment variable.
By default, the memory limit is 128M.
You can change the timezone with PHP_TIMEZONE environment variable.
By default, the timezone is UTC.
You can create a script for run rtorrent-cleaner with Docker
Or if you use a socket with rtorrent /run/php/.rtorrent.sock
.
Usage:
Or with a socket
Example with the docker image linuxserver/rutorrent
Configure your docker-compose.yml
Run linuxserver/rutorrent
Create your rtorrent-cleaner script in /usr/local/bin
folder
After this step you can run rtorrent-cleaner
Build docker image
Build Phar Archive (rtorrent-cleaner.phar)
To build the archive phar, php 7.2 and php-phar
extension is required.
License
rtorrent-cleaner is released under the MIT License.
All versions of rtorrent-cleaner with dependencies
ext-json Version *
ext-iconv Version *
ext-xmlrpc Version *
symfony/console Version 3.4.* || 5.1.*
symfony/finder Version 3.4.* || 5.1.*
symfony/stopwatch Version 3.4.* || 5.1.*