Newer
Older
A docker image to upload all files to s3 and update your database. Don't forget to backup before ;)
## Usage
Add the docker-compose to your current one, evit the env file, restart, adn you should be good.
The script is a bit rough, but should work.
## Commit
At the end, if you are happy, you can commit the change in the DB:
```
mysql -uroot -p${MYSQL_ROOT_PASSWORD} -D ${MYSQL_DATABASE} << EOF
update storages
set id = concat('object::user:', substring(id from 7))
where id like 'home::%';
update storages
set id = 'object::store:amazon::${OBJECTSTORE_S3_BUCKET}'
where id like 'local::%';
EOF
```
## Thanks to
https://pedal.me.uk/migrating-a-nextcloud-instance-to-amazon-s3/