- Domain Name
- Main Dedicated Server
- Private FTP Backups Server
General budget: from ~17€ to ~100€ per month
Obviously you need a domain name for 15/20€ per year pointing to the IP of the Main Dedicated server ;-)
Be sure to configure DKIM TXT DNS record after installing PeerTube Stack.
- ~10€ per month for small channels with few and short content
- ~45€ per month for channels with average and moderate content and maybe one channel with lots of content
- ~100€ per month for several channels with very regular and big content
-
CPU X86_64:
- Intel Avoton / Atom with at least 2 cores but slow for transcoding
- Intel Core i3, Intel Xeon
- Intel Core i5, Intel Xeon
-
RAM:
- >=2Go
- >=8Go
- >=32Go
-
HDD:
- <= 500Go
- >= 2To
- > 4To
-
Bandwith:
- >= 150Mbps / Unlimited
- >= 250Mbps / Unlimited
- >= 500Mbps / Unlimited
- Linux distribution like Debian Buster, Ubuntu server...
- Docker installed https://docs.docker.com/install/
Installing with one shell-command: https://github.com/kimsible/install-peertube/
At least 100Go, generally free and provided with the Main Dedicated Server, used to backup all the Docker data-volume and setup including database with videos files.
Creation and usage: As root or sudoer user
- Install
curl
- Copy
peertube-backup
content to/usr/bin/peertube-backup
- Define
SERVER_URL=user:password@address.tld
according to your needs - Make
/usr/bin/peertube-backup
executable withchmod +x /usr/bin/peertube-backup
- Proceed backup by running
peertube-backup
(will overwrite existing daily backup on ftp server) - The backup will be avalaible on backup ftp server
Creation and usage: As root or sudoer user
- Edit crontab with
crontab -u root -e
- Add this line to run it as docker user every day at 5:25am :
25 5 * * * /usr/bin/peertube-backup
Creation and usage: As root or sudoer user
- Install
curl, lftp
- Copy
peertube-restore
content to/usr/bin/peertube-restore
- Define
SERVER_URL=user:password@address.tld
according to your needs - Make
/usr/bin/peertube-restore
executable withchmod +x /usr/bin/peertube-restore
- Proceed restore by running
peertube-restore peertube-backup_YYYY-MM-DD.tar.bz2
Creation and usage: As root or sudoer user
// Basic transfert
scp -r -p username@old-server:/var/peertube /var/peertube
// Optimized transfert
rsync -raP username@old-server:/var/peertube /var/peertube
Creation: As root or sudoer user
Usage: As non-root user with docker group
- Copy
peertube-cli
content to/usr/bin/peertube
- Make
/usr/bin/peertube
executable withchmod +x /usr/bin/peertube
- Run any Server Tool script with
peertube SERVER_TOOL
Server Tools List: https://docs.joinpeertube.org/#/maintain-tools?id=server-tools
This feature is included in PeerTube with client-overrides since v2.3.0: https://github.com/Chocobozzz/PeerTube/releases/tag/v2.3.0
Creation and usage: As root or sudoer user
- Copy
peertube-assets
content to/usr/bin/peertube-assets
- Make
/usr/bin/peertube-asssets
executable withchmod +x /usr/bin/peertube-assets
- Copy
peertube-assets.service
content to/etc/systemd/system/peertube-assets.service
- Run
systemctl daemon-reload
andsystemctl enable peertube-assets
- Put your assets in
/var/peertube/docker-volume/data/client-overrides/assets
withscp -r -p /local-assets-dir username@main-server:/var/peertube/docker-volume/data/assets
- Run
systemctl restart peertube
You might want to limit your SQL query of
videoFiles
to local videos.