Add doc to move videos to filesystem

This commit is contained in:
Chocobozzz 2023-11-08 15:05:32 +01:00
parent cc747fd67d
commit dbb54df6bd
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -245,7 +245,7 @@ cd /var/www/peertube-docker
docker-compose exec -u peertube peertube npm run create-import-video-file-job -- -v [videoUUID] -i [videoFile]
```
### Move video files to object storage
### Move video files from filesystem to object storage
Use this script to move all video files or a specific video file to object storage.
@ -271,6 +271,34 @@ cd /var/www/peertube-docker
docker-compose exec -u peertube peertube npm run create-move-video-storage-job -- --to-object-storage --all-videos
```
### Move video files from object storage to filesystem
**PeerTube >= 6.0**
Use this script to move all video files or a specific video file from object storage to the PeerTube instance filesystem.
```bash
# Basic installation
cd /var/www/peertube/peertube-latest
sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-move-video-storage-job -- --to-file-system -v [videoUUID]
# Docker installation
cd /var/www/peertube-docker
docker-compose exec -u peertube peertube npm run create-move-video-storage-job -- --to-file-system -v [videoUUID]
```
The script can also move all video files that are not already on the filesystem:
```bash
# Basic installation
cd /var/www/peertube/peertube-latest
sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-move-video-storage-job -- --to-file-system --all-videos
# Docker installation
cd /var/www/peertube-docker
docker-compose exec -u peertube peertube npm run create-move-video-storage-job -- --to-file-system --all-videos
```
### Generate storyboard
**PeerTube >= 6.0**