aria2 default configuration file

aria2 default configuration file

References

Common options

aria2c -c -m 0 -t 5 -j 8 -s 8 -x 8 -k 1m --file-allocation=none http://example.com/abc.zip

aria2.conf

The difference between is the configuration file aria2.conf path and file allocation method.

Linux

By default, aria2 checks whether the legacy path $HOME/.aria2/aria2.conf is present, otherwise it parses $XDG_CONFIG_HOME/aria2/aria2.conf as its configuration file.

If you are using newer file systems such as ext4 (with extents support), btrfs, xfs, falloc is your best choice. It allocates large(few GiB) files almost instantly.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cat << EOF | (mkdir -p $HOME/.aria2/ && tee $HOME/.aria2/aria2.conf)
# -c -m 0 -t 5 -j 8 -s 8 -x 8 -k 1m --file-allocation=falloc

continue=true
max-tries=0
connect-timeout=5
timeout=5

split=8
min-split-size=1M
max-connection-per-server=8
max-concurrent-downloads=64

# Linux on ext4 (with extents support), btrfs, xfs
file-allocation=falloc

# Windows use 'none', since 'falloc' need MinGW build, NTFS and SeManageVolumePrivilege
# file-allocation=none

#lowest-speed-limit=1K
max-overall-upload-limit=64K
EOF

Windows

aria2 parses %USERPROFILE%\.aria2\aria2.conf as its configuration file.

If you are using falloc as your file allocation method, you must have SeManageVolumePrivilege privilege.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -c -m 0 -t 5 -j 8 -s 8 -x 8 -k 1m --file-allocation=none
continue=true
max-tries=0
connect-timeout=5
timeout=5

split=8
min-split-size=1M
max-connection-per-server=8
max-concurrent-downloads=64

file-allocation=none

#lowest-speed-limit=1K
max-overall-upload-limit=64K