1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00
Files
rclone/docs/content/commands/rclone_archive_extract.md
Nick Craig-Wood 38ab3dd5b1 Version v1.72.0
2025-11-21 17:10:17 +00:00

1.8 KiB

title, description, versionIntroduced
title description versionIntroduced
rclone archive extract Extract archives from source to destination. v1.72

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