[Adminsysters] nextcloud

ignifugo ignifugo at insicuri.net
Wed Jul 21 00:27:11 CEST 2021


On 20/07/21 21:37, ignifugo wrote:
>
> On 19/07/21 23:39, ignifugo wrote:
>
>> hi
>>
>> yhhu I customized the login of our cloud
>>
>> https://cloud.systerserver.net/
>>
>> inside there are a lot of fotographs from the past /etc in athens!!
>>
>> woow are beautifull! I didn't know..
>>
>> thanks!
>>
>> Ah... the email set in the cloud to reset passw and notifications is 
>> not working..
>>
>> the set email is .. info at eclectictechcarnival.org ... hum but there 
>> is not set the smtp pasww to send..
>>
>> It is possible that someone create a email for the cloud.. for 
>> example cloud at systerserver.net and share the passw with me..
>>
>> and I set this in our cloud? what do you think?
>>
> I spend an hour going straight with the update of nextcloud... :)
>
> https://vc.autistici.org/updatenextcloudinasummernight
>
> hugs igni
>
I update from 20.0.2 to 22.0.0 !!! yhuuu 13 versions!

I wrote a script to update one by one :)

and also a script to backup.

are in the directories nexcloud_backup and  nextcloud_update

updated news in root/Changelog

hugs

ignifugo


_________________

I paste also here:


#shebang

#!/bin/bash

rm -rf last/*
mv  ./config/ last/config/
mv  ./data/ last/data/
mv db_nextcloud.gz last/db_nextcloud.gz
echo "moved old file in last/"

cp -rf ../nextcloud/config/ ./
cp -rf ../nextcloud/data/  ./

#export db , will ask the password to you, you can find in 
nextcloud/config/config.php
pg_dump -U nextcloud -W -d nextcloud | gzip > db_nextcloud.gz


echo "backup done"
____________________________

# Manual for manual update: 
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html

# this to see when release and drop support
# https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule

# download here: https://download.nextcloud.com/server/releases/
###################################################################
###################################################################


# ATTENZIONE/QUIDADO/DANGER change the version number! TWICE in the 
first 4line


###################################################################
###################################################################
#shebang
#!/bin/bash

wget https://download.nextcloud.com/server/releases/nextcloud-22.0.0.tar.bz2

service apache2 stop
echo "apache stop"

tar -xjf nextcloud-22.0.0.tar.bz2
echo "unpacked"

rm  *.tar.bz2
echo "removed compressed archive"

rm -rf ../nextcloud_old/
echo "old_old_file erased"

mv ../nextcloud/ ../nextcloud_old/

echo "old file moved"

mv  ./nextcloud/ ../
echo "new file moved"

rm -rf ../nextcloud/config/
echo "new config erased"

mv ../nextcloud_old/config/ ../nextcloud/
echo "old config moved"

mv ../nextcloud_old/data/ ../nextcloud/
echo "old data moved"

ls -1 ../nextcloud/apps/ | wc -l
echo "n* of apps new"

ls -1 ../nextcloud_old/apps/ | wc -l
echo "n* of apps old"

cd ../

chown -R www-data:www-data nextcloud

find nextcloud/ -type d -exec chmod 750 {} \;

find nextcloud/ -type f -exec chmod 640 {} \;
echo "changed permissions on dir and files"

service apache2 start
echo "apache2 started"

cd nextcloud/

#sudo -u www-data php occ upgrade
#echo "db update started"




More information about the Adminsysters mailing list