Fix missing original_video_files docker directory

This commit is contained in:
Chocobozzz 2024-09-18 09:27:02 +02:00
parent 7ead42ae6e
commit 373a9265ba
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
This migration can take a long time if you have many federated/local videos, but is designed to be safe to run multiple times: This migration can take a long time if you have many federated/local videos, but is designed to be safe to run multiple times:
* Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-6.3.js` * Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-6.3.js`
* Docker installation: `cd /var/www/peertube-docker && docker-compose exec -u peertube peertube node dist/scripts/migrations/peertube-6.3.js` * Docker installation: `cd /var/www/peertube-docker && docker-compose exec -u peertube peertube node dist/scripts/migrations/peertube-6.3.js`
* **Important for Docker admins** If you enabled the "Keep a version of the input file" configuration, files may have been stored in the container instead of the host volume. To prevent data loss, you must **copy** the files on the host before upgrading using `docker compose cp peertube:/app/storage/original-video-files docker-volume/data`
### Docker ### Docker

View File

@ -49,6 +49,7 @@ storage:
avatars: '../data/avatars/' avatars: '../data/avatars/'
web_videos: '../data/web-videos/' web_videos: '../data/web-videos/'
streaming_playlists: '../data/streaming-playlists' streaming_playlists: '../data/streaming-playlists'
original_video_files: '../data/original-video-files'
redundancy: '../data/redundancy/' redundancy: '../data/redundancy/'
logs: '../data/logs/' logs: '../data/logs/'
previews: '../data/previews/' previews: '../data/previews/'