Skip to content

Commit

Permalink
Add doc to move videos to filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Nov 8, 2023
1 parent cc747fd commit dbb54df
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion support/doc/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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**
Expand Down

0 comments on commit dbb54df

Please sign in to comment.