# How to automatically sync to external S3 storage

**URL:** <https://help.nextcloud.com/t/how-to-automatically-sync-to-external-s3-storage/74307>\
**Category:** ℹ️ Support\
**Tags:** feature\
**Created:** [March 18, 2020, 2:04pm UTC](https://help.nextcloud.com/t/how-to-automatically-sync-to-external-s3-storage/74307 "2020-03-18T14:04:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [March 18, 2020, 5:29pm UTC](https://help.nextcloud.com/t/how-to-automatically-sync-to-external-s3-storage/74307/2 "2020-03-18T17:29:20Z")

</div>

> [@greavette](#):
>
> automated way to sync to this S3

backup or you want make the files also available through S3?

backup: [https://restic.readthedocs.io/](https://restic.readthedocs.io/) and/or [https://rclone.org/s3/](https://rclone.org/s3/) can copy files from linux to S3.

restic would store the files in a “restic repo”. you can’t access the files with “S3 tools”. but you get an incremantal backup of your files.

[rclone.org](http://rclone.org) simply syncs your files like rsync. so there’s no versioning unless you turn on S3 versioning. and deleted file will get delete as well. or not. depends on how you sync.

hope you get the point.

further reading:

> [@Nextcloud Backup and Restore](https://help.nextcloud.com/t/nextcloud-backup-and-restore/51589/6):
>
> install restic as root sudo -i wget https://github.com/restic/restic/releases/download/v0.9.4/restic\_0.9.4\_linux\_amd64.bz2 bunzip2 restic\_0.9.4\_linux\_amd64.bz2 mv restic\_0.9.4\_linux\_amd64 /usr/local/bin/restic chmod 0755 /usr/local/bin/restic mount the backup directory to /mnt/nc-backup set two environment variables export RESTIC\_REPOSITORY="/var/nc-backup" export RESTIC\_PASSWORD="oJSesetLzRgphy9UwmWxi50oE0dkYa16" initialize restic restic init create a backup script /usr/local/bin/backup\_…

plus

[https://restic.readthedocs.io/en/latest/030\_preparing\_a\_new\_repo.html#amazon-s3](https://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html#amazon-s3)

---

_[View the full topic](https://help.nextcloud.com/t/how-to-automatically-sync-to-external-s3-storage/74307)._
