Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write guide to explain how to upgrade versions #2744

Open
D-Vaillant opened this issue Oct 18, 2024 · 3 comments
Open

Write guide to explain how to upgrade versions #2744

D-Vaillant opened this issue Oct 18, 2024 · 3 comments

Comments

@D-Vaillant
Copy link

Is your feature request related to a problem?

The major blocker for me for upgrading is trying to figure out what I need to migrate from my previous version in order to maintain everything that I already had in place.

Describe the solution you'd like

A specification of which configuration files can/should be copied over would be nice.

Additional context

No response

@stickz
Copy link
Collaborator

stickz commented Oct 19, 2024

Hello @D-Vaillant, you should be able to copy over your share and conf folders to retain settings for all hot fix releases. For minor or major versions, replace config.php each time and manually merge your settings into the new version.

The wiki is public editable. If you'd like to write a guide, I'd be happy to answer any of your questions.

@filex100
Copy link

How about an option to create a backup?

For when it is necessary to change servers or to have a backup in case the server goes down.

@castillo92
Copy link

@D-Vaillant @filex100

This is my 5 steps procedure to update ruTorrent, always manually, but it is easy to move to an automatic batch:

# Update ruTorrent
# Move old version to a backup folder
sudo mv /var/www/rutorrent /home/USER/Desktop/BackUps/rutorrent_2024_11_25

# Download the new version in \var\www
sudo git clone https://github.com/Novik/ruTorrent.git /var/www/rutorrent/

# Restore config file from backup
sudo cp /home/USER/Desktop/BackUps/rutorrent_2024_11_25/conf/config.php /var/www/rutorrent/conf

# Restore login credentials from backup folder
sudo cp /home/USER/Desktop/BackUps/rutorrent_2024_11_25/.htaccess /var/www/rutorrent/
sudo cp /home/USER/Desktop/BackUps/rutorrent_2024_11_25/.htpasswd /var/www/rutorrent/

# Apply web-server permissions to updated folder
sudo chown -R www-data:www-data /var/www/rutorrent
To create login page and protect it:
# Creating file with user and password encrypted, ask for password
sudo htpasswd -c /var/www/rutorrent/.htpasswd USER1
# Create the config file
sudo nano /var/www/rutorrent/.htaccess
AuthUserFile /var/www/rutorrent/.htpasswd
AuthName "Login to access..."
AuthType Basic
require valid-user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants