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 today

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 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

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

1579d 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://avatars.githubusercontent.com/u/242398?v=4)[sykez](/maintainers/sykez)[@Sykez](https://github.com/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

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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