2018-02-06 19:23:47 +01:00
---
title: "Alias"
description: "Remote Aliases"
2022-11-17 17:56:24 +00:00
versionIntroduced: "v1.40"
2018-02-06 19:23:47 +01:00
---
2021-07-20 19:45:41 +01:00
# {{< icon "fa fa-link" >}} Alias
2018-02-06 19:23:47 +01:00
The `alias` remote provides a new name for another remote.
2025-08-25 00:00:48 +02:00
Paths may be as deep as required or a local path,
2020-10-13 17:49:58 -04:00
e.g. `remote:directory/subdirectory` or `/directory/subdirectory` .
2018-02-06 19:23:47 +01:00
During the initial setup with `rclone config` you will specify the target
remote. The target remote can either be a local path or another remote.
2020-05-19 19:02:44 +08:00
Subfolders can be used in target remote. Assume an alias remote named `backup`
2018-02-06 19:23:47 +01:00
with the target `mydrive:private/backup` . Invoking `rclone mkdir backup:desktop`
is exactly the same as invoking `rclone mkdir mydrive:private/backup/desktop` .
There will be no special handling of paths containing `..` segments.
Invoking `rclone mkdir backup:../desktop` is exactly the same as invoking
`rclone mkdir mydrive:private/backup/../desktop` .
The empty path is not allowed as a remote. To alias the current directory
use `.` instead.
2025-08-25 00:00:48 +02:00
The target remote can also be a [connection string ](/docs/#connection-strings ).
2022-10-21 11:45:24 +02:00
This can be used to modify the config of a remote for different uses, e.g.
2025-08-25 00:00:48 +02:00
the alias `myDriveTrash` with the target remote `myDrive,trashed_only:`
2022-10-21 11:45:24 +02:00
can be used to only show the trashed files in `myDrive` .
2021-10-14 15:40:18 +02:00
## Configuration
2020-05-19 19:02:44 +08:00
Here is an example of how to make an alias called `remote` for local folder.
2018-02-06 19:23:47 +01:00
First run:
2025-10-31 21:58:24 +01:00
```console
2025-08-25 00:00:48 +02:00
rclone config
```
2018-02-06 19:23:47 +01:00
This will guide you through an interactive setup process:
2025-08-25 00:00:48 +02:00
```text
2021-11-01 21:34:46 +01:00
No remotes found, make a new one?
2018-02-06 19:23:47 +01:00
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
2019-08-26 10:47:17 +01:00
[snip]
XX / Alias for an existing remote
2018-02-06 19:23:47 +01:00
\ "alias"
2019-08-26 10:47:17 +01:00
[snip]
Storage> alias
2018-02-06 19:23:47 +01:00
Remote or path to alias.
Can be "myremote:path/to/dir", "myremote:bucket", "myremote:" or "/local/path".
remote> /mnt/storage/backup
Remote config
2024-08-16 12:05:43 +02:00
Configuration complete.
Options:
- type: alias
- remote: /mnt/storage/backup
Keep this "remote" remote?
2018-02-06 19:23:47 +01:00
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:
Name Type
==== ====
remote alias
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
```
2025-10-31 22:02:58 +01:00
Once configured you can then use `rclone` like this (replace `remote` with the
name you gave your remote):
2018-02-06 19:23:47 +01:00
List directories in top level in `/mnt/storage/backup`
2025-10-31 21:58:24 +01:00
```console
2025-08-25 00:00:48 +02:00
rclone lsd remote:
```
2018-02-06 19:23:47 +01:00
List all the files in `/mnt/storage/backup`
2025-10-31 21:58:24 +01:00
```console
2025-08-25 00:00:48 +02:00
rclone ls remote:
```
2018-02-06 19:23:47 +01:00
Copy another local directory to the alias directory called source
2025-10-31 21:58:24 +01:00
```console
2025-08-25 00:00:48 +02:00
rclone copy /home/source remote:source
```
2018-02-06 19:23:47 +01:00
2025-11-04 14:56:55 +01:00
<!-- autogenerated options start - DO NOT EDIT - instead edit fs.RegInfo in backend/alias/alias.go and run make backenddocs to verify --> <!-- markdownlint - disable - line line - length -->
2021-11-01 15:42:05 +00:00
### Standard options
2018-10-01 20:48:54 +01:00
2022-07-09 18:08:20 +01:00
Here are the Standard options specific to alias (Alias for an existing remote).
2018-10-01 20:48:54 +01:00
#### --alias-remote
Remote or path to alias.
2021-11-01 15:42:05 +00:00
2018-10-01 20:48:54 +01:00
Can be "myremote:path/to/dir", "myremote:bucket", "myremote:" or "/local/path".
2022-03-18 12:29:54 +00:00
Properties:
2018-10-01 20:48:54 +01:00
- Config: remote
- Env Var: RCLONE_ALIAS_REMOTE
- Type: string
2022-03-18 12:29:54 +00:00
- Required: true
2018-10-01 20:48:54 +01:00
2024-03-10 11:22:43 +00:00
### Advanced options
Here are the Advanced options specific to alias (Alias for an existing remote).
#### --alias-description
2024-06-14 16:04:51 +01:00
Description of the remote.
2024-03-10 11:22:43 +00:00
Properties:
- Config: description
- Env Var: RCLONE_ALIAS_DESCRIPTION
- Type: string
- Required: false
2025-11-04 14:56:55 +01:00
<!-- autogenerated options stop -->