Hello everyone, maybe someone can tell me how to use the migration correctly. The fact is that if I use
rsync -avz -e "ssh -p 9899 -i /root/.ssh/rsync" /var/www/peertube/storage root@91.240.84.224:/var/www/peertube/
I root the storage files, and I would like to see if this is correct? After that, I use
chown peertube:peertube -R /var/www/peertube/storage && sudo chmod -R 755 /var/www/peertube/storage
If I try to do this, the peertube user can’t read the rsync key
sudo -u peertube rsync -avz -e "ssh -p 9899 -i /root/.ssh/rsync" /var/www/peertube/storage root@91.240.84.224:/var/www/peertube/
Do you have any thoughts on this, or should you just use root in this format and just change permissions, will it be correct? Thank you
rsync -avz -e "ssh -p 9899 -i /root/.ssh/rsync" /var/www/peertube/storage root@91.240.84.224:/var/www/peertube/