PHPackages                             sykez/laravel-storage-copy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. sykez/laravel-storage-copy

ActiveLibrary[File &amp; Storage](/categories/file-storage)

sykez/laravel-storage-copy
==========================

Laravel Artisan command for copying files between Laravel Filesystem/Storage disks.

v1.2.0(4y ago)76.1k2MITPHPPHP ^7.4 || ^8.0

Since Aug 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sykezz/laravel-storage-copy)[ Packagist](https://packagist.org/packages/sykez/laravel-storage-copy)[ Docs](https://github.com/sykezz/laravel-storage-copy)[ RSS](/packages/sykez-laravel-storage-copy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

Storage Copy for Laravel
========================

[](#storage-copy-for-laravel)

Laravel Artisan command for copying files between Laravel Filesystem/Storage disks.

Install
-------

[](#install)

```
composer require sykez/laravel-storage-copy

```

Usage
-----

[](#usage)

```
storage:copy [options] [--]

```

### Arguments

[](#arguments)

```
source                Name of the Filesystem disk you want to copy from
destination           Name of the Filesystem disk you want to copy to

```

### Options

[](#options)

```
-d, --delete          Delete files on destination disk which aren't on the source disk
-o, --overwrite       If files already exist on destination disk, overwrite them instead of skip
-nv, --novisibility   Skip getting visibilty on the source
-x, --exclude         Regex filter for excluding files
-l, --log             Log all actions into Laravel log
-O, --output          Output all actions

```

Examples
--------

[](#examples)

- Copy `public` disk to `s3`. By default, existing files will be skipped if modified time is same.

    ```
    php artisan storage:copy public s3

    ```
- Copy `s3` disk to `custom`. `delete` option would delete any files on the destination disk (`custom`), which aren't in the source disk (`s3`). `overwrite` option would overwrite the files if exists on the destination disk instead of skipping.

    ```
    php artisan storage:copy --delete --overwrite s3 custom

    ```
- Copy from S3 bucket to another S3 buket
    Since there is only one S3 disk in Laravel by default, in order to copy one bucket to another, another disk needs to be added into `config/filesystems.php`:

    ```
        'disks' => [

            // ... other disks

            'another-s3' => [
                'driver' => 's3',
                'key' => env('ANOTHER_AWS_ACCESS_KEY_ID'),
                'secret' => env('ANOTHER_AWS_SECRET_ACCESS_KEY'),
                'region' => env('ANOTHER_AWS_DEFAULT_REGION'),
                'bucket' => env('ANOTHER_AWS_BUCKET'),
                'url' => env('ANOTHER_AWS_URL'),
            ],
        ],

    ```

    After adding the new disk's details (`ANOTHER_AWS`) into `.env`, `s3` disk can now be copied to `another-s3` disk:

    ```
    php artisan storage:copy -od s3 another-s3

    ```
- Log and debugging `log` option would log all actions taken on the files into Laravel's log, while `debug` option would output these actions into the console instead.

    ```
    php artisan storage:copy --log --output s3 rackspace

    ```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~312 days

Total

4

Last Release

1526d ago

PHP version history (3 changes)1.0.0PHP ^7.2

1.1.1PHP ^7.0

v1.2.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1c2819ceb92b2220c63f3384e9346099c1c39402e868c0a4086e1b8ca9d9cbe?d=identicon)[sykez](/maintainers/sykez)

---

Top Contributors

[![sykezz](https://avatars.githubusercontent.com/u/6332979?v=4)](https://github.com/sykezz "sykezz (10 commits)")[![edwardcaret](https://avatars.githubusercontent.com/u/6883977?v=4)](https://github.com/edwardcaret "edwardcaret (5 commits)")[![DesignOptics](https://avatars.githubusercontent.com/u/52825001?v=4)](https://github.com/DesignOptics "DesignOptics (3 commits)")

---

Tags

amazon-s3bucketfilesystemflysystemlaravellaravel-filesystemobject-storagephps3storagefilesystemFlysystemlaravels3copyfilestoragesyncmigrate

### Embed Badge

![Health badge](/badges/sykez-laravel-storage-copy/health.svg)

```
[![Health](https://phpackages.com/badges/sykez-laravel-storage-copy/health.svg)](https://phpackages.com/packages/sykez-laravel-storage-copy)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

2610.5M31](/packages/league-flysystem-async-aws-s3)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)[innoge/laravel-rclone

A sleek PHP wrapper around rclone with Laravel-style fluent API syntax

174.1k](/packages/innoge-laravel-rclone)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
