"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
title: "rclone archive extract" description: "Extract archives from source to destination." versionIntroduced: v1.72
autogenerated - DO NOT EDIT, instead edit the source code in cmd/archive/extract/ and as part of making a release run "make commanddocs"
rclone archive extract
Extract archives from source to destination.
Synopsis
Extract the archive contents to a destination directory auto detecting the format. See rclone archive create for the archive formats supported.
For example on this archive:
$ rclone archive list --long remote:archive.zip
6 2025-10-30 09:46:23.000000000 file.txt
0 2025-10-30 09:46:57.000000000 dir/
4 2025-10-30 09:46:57.000000000 dir/bye.txt
You can run extract like this
$ rclone archive extract remote:archive.zip remote:extracted
Which gives this result
$ rclone tree remote:extracted
/
├── dir
│ └── bye.txt
└── file.txt
The source or destination or both can be local or remote.
Filters can be used to only extract certain files:
$ rclone archive extract archive.zip partial --include "bye.*"
$ rclone tree partial
/
└── dir
└── bye.txt
The archive backend can also be used to extract files. It can be used to read only mount archives also but it supports a different set of archive formats to the archive commands.
rclone archive extract [flags] <source> <destination>
Options
-h, --help help for extract
See the global flags page for global options not listed here.
See Also
- rclone archive - Perform an action on an archive.