# Use rsync to copy installation (npm not available on hosting)

**URL:** <https://forum.mautic.org/t/use-rsync-to-copy-installation-npm-not-available-on-hosting/33930>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [October 25, 2024, 7:55am UTC](https://forum.mautic.org/t/use-rsync-to-copy-installation-npm-not-available-on-hosting/33930 "2024-10-25T07:55:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [October 25, 2024, 7:55am UTC](https://forum.mautic.org/t/use-rsync-to-copy-installation-npm-not-available-on-hosting/33930/1 "2024-10-25T07:55:40Z")

</div>

**Your software**  
My Mautic version is: 5.1.x  
My PHP version is: 8.1.30  
My Database type and version is: ?

**Your problem**

On my webhoster npm is not available. Everything else is. Due to npm no being available I can’t install by mautic by composer. So i’ve installed it on my local linux workstation and rsynced it. Now I upgraded on my workstation to 5.1.1.

Then I’m using this rsync command to send the changes to the hosting:

```auto
rsync -ruv \
  --links \
  --checksum \
  --perms \
  --exclude /config/ \
  --exclude /var/ \
  --exclude /.git/ \
  --exclude /.htaccess \
  --exclude /docroot/translations/ \
  --exclude /docroot/media/images/ \
  --exclude /docroot/media/libraries/ckeditor/translations/ \
  ./ \
  user@webhosting:vhost/mautic/ \
  --delete \

```

afterwards I did run the clear-cache/update commands as documented ([How to update Mautic — Mautic Documentation 0.1 documentation](https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html#updating-mautic-composer-based-installs)).

Now everything seems to run fine. 🙂 Nice!

Are there other folders to exclude in rsync? Or do I have excluded too much already?

---

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [October 25, 2024, 9:54am UTC](https://forum.mautic.org/t/use-rsync-to-copy-installation-npm-not-available-on-hosting/33930/2 "2024-10-25T09:54:58Z")

</div>

Probably the `.gitignore` file should give pointers what to exclude/include.
