Improve information regarding prune storage script
This commit is contained in:
parent
2feebf3e6a
commit
7089e7b4e5
|
@ -91,6 +91,7 @@ async function askConfirmation () {
|
||||||
confirm: {
|
confirm: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: 'These following unused files can be deleted, but please check your backups first (bugs happen).' +
|
description: 'These following unused files can be deleted, but please check your backups first (bugs happen).' +
|
||||||
|
' Notice PeerTube must have been stopped when your ran this script.' +
|
||||||
' Can we delete these files?',
|
' Can we delete these files?',
|
||||||
default: 'n',
|
default: 'n',
|
||||||
required: true
|
required: true
|
||||||
|
|
|
@ -198,10 +198,10 @@ $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production
|
||||||
### prune-storage.js
|
### prune-storage.js
|
||||||
|
|
||||||
Some transcoded videos or shutdown at a bad time can leave some unused files on your storage.
|
Some transcoded videos or shutdown at a bad time can leave some unused files on your storage.
|
||||||
To delete them (a confirmation will be demanded first):
|
Stop PeerTube and delete these files (a confirmation will be demanded first):
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage
|
$ sudo systemctl stop peertube && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage
|
||||||
```
|
```
|
||||||
|
|
||||||
### optimize-old-videos.js
|
### optimize-old-videos.js
|
||||||
|
|
Loading…
Reference in New Issue