Nach der Wiederherstellung meiner Website auf einem neuen Server sind alle Bilder defekt. Die Bilder sind auch nach einem Neuaufbau defekt. Ist eine manuelle Migration möglich? Wenn ja, wie kann ich alle Dateien manuell von S3 auf den lokalen Speicher migrieren?
Do the images on the new site point to the S3 bucket? If so, they should work.
Maybe have a look at Migrating uploads from s3 to local - #2 by Stephen, though I think there should be a howto.
Hi, thanks for responding.
I followed the same steps mentioned by you earlier, but nothing happened. I ended up having a site with broken images. see my previous topic,
Only some files are migrated back from s3, not all.
root@ubuntu-blr-app:/var/www/discourse# rake uploads:migrate_from_s3
Migrating uploads from S3 to local storage for 'default'...
..Done!
So, I was thinking of manually migrating all the files and I don’t know if it’s possible..?
Ich habe die oben genannten drei Ordner in meinem S3-Bucket. Ich weiß nicht, an welchem Ort auf meinem Server ich diese Ordner aus S3 kopieren muss. Wird nach dem Kopieren ein rake posts:rebake den letzten Schritt erledigen??
Leute, habt ihr dazu irgendwelche Gedanken??
Schließlich habe ich eine Lösung für mein Problem gefunden. Ich denke, ich habe 95 % des Problems gelöst. Ich bin mir nicht sicher, ob dies der beste Weg ist.
./launcher enter app
sudo apt install awscli
aws configure
Ich habe AWS mit meiner S3-ID und meinem Passwort konfiguriert. Anschließend:
cd public/uploads/default/
aws s3 sync s3://mybucketname/
Dieser Befehl hat alle drei Verzeichnisse mit allen Dateien von S3 heruntergeladen. Da ich den Ordner namens „inventory
