DSpace Users Club
Idea Building Space
Thursday, November 26, 2026
Thursday, January 22, 2026
Schedule Restart PM2 Service for DSpace 9.2 on Ubuntu
Start Manually
pm2 start /home/dspace/dspace-angular-dspace-9.2/dspace-
ui.json
Find PM2 binary path
which pm2
Add DAILY restart job (example: 2:00 AM)
0 2 * * * /usr/bin/pm2 restart
/home/dspace/dspace-angular-dspace-9.2/dspace-ui.json >>
/home/dspace/pm2-restart.log 2>&1
Ensure
PM2 starts on reboot
pm2
startup
pm2 save
Wednesday, January 21, 2026
Schedule Backup of DSpace 9.2 on Ubuntu
Start Manually
Backup the PostgreSQL Database
Create a dedicated backup folder
sudo mkdir -p /backup/dspace
sudo chown -R dspace:dspace /backup/dspace
Backup Postgres DB
sudo -i -u postgres
pg_dump -Fc dspace > /backup/dspace/dspace_$(date +%F).dump
exit
Wednesday, September 3, 2025
Upgrade Koha from 23 to 25
sudo mysql -uroot -p koha_library < koha_library.sql
sudo systemctl restart apache2.service
sudo systemctl restart koha-common
sudo apt update && sudo apt upgrade
sudo rm /etc/apt/sources.list.d/koha.list
echo "deb http://debian.koha-community.org/koha stable main" | sudo tee /etc/apt/sources.list.d/koha.list
wget -q -O- https://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -
sudo apt update
sudo apt full-upgrade
sudo systemctl restart koha-common
sudo systemctl restart apache2
sudo koha-upgrade-schema library
service mysql restart
sudo systemctl restart apache2
sudo koha-plack --enable library
sudo koha-plack --start library
sudo service memcached restart
Wednesday, December 4, 2024
Create Superuser in Mysql
Login MySQL using
mysql -u root -p
CREATE USER 'superuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'superuser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
Friday, July 5, 2024
How to improve ubuntu performamce
1. Update Your System
Regularly update your system to ensure you have the
latest performance improvements and security patches.
sudo apt upgrade
gnome-tweaks
If you are using a resource-heavy desktop environment
like GNOME or KDE, consider switching to a lighter one like XFCE or LXDE.
sudo apt install lxde
Adjust the swappiness value to reduce the use of the swap
file and improve performance.
sudo nano /etc/sysctl.conf
Add or edit the line vm.swappiness=10 in
/etc/sysctl.conf.
Remove unnecessary files and packages to free up space
and reduce clutter.
sudo apt clean
sudo apt autoclean
sudo bleachbit
Use tools like fsck to check and repair file system
errors.
Use fstrim to trim SSDs.
sudo fstrim -v /
Changing your DNS server can improve network performance.
Consider using a faster DNS provider like Google DNS or OpenDNS.
Add the following lines:
nameserver 8.8.4.4
8. Upgrade Hardware
Adding more RAM or upgrading to an SSD can significantly improve system performance.
9. Disable Animations
Disabling animations can make your desktop environment
feel snappier.
gsettings set org.gnome.desktop.interface
enable-animations false
10. Monitor System Resources
Use system monitoring tools to keep an eye on resource
usage and identify bottlenecks.
htop
Use lightweight alternatives to resource-heavy
applications (e.g., using Featherpad instead of Gedit).
Courtesy: ChatGPT
Monday, April 8, 2024
How to migrate Linux Dspace to Window 10
Take a backup of Dspace database and folders
Assume the version is same with both OS [I have tested DSpace 6.3]
sudo su
mkdir dspace_backup
sudo chmod 777 dspace_backup
exit
dspace_backup/backup.sh
Copy below script to backup.sh file
nano /home/dspace/dspace_backup/backup.sh
#!/bin/bash
PGPASSWORD="dspace" pg_dump -U dspace -h localhost -Fc dspace | gzip > home/dspace/dspace_backup/dspace-$(date +%Y-%m-%d-%H.%M.%S).sql.gz
now=$(date +"%d_%m_%Y")
zip -r /home/dspace/dspace_backup/$now-assetstore.zip /dspace/assetstore
zip -r /home/dspace/dspace_backup/$now-log.zip /dspace/log
save the file &
Give a permission to file
sudo chmod +x dspace_backup/backup.sh
Go to directory
cd /home/dspace/dspace_backup
Issue the command
sh backup.sh
copy all files from the directory to Window10
(there will be three files sql.gz, assetstore.zip, and log.zip)
Locate all backup of Dspace database and folders anywhere you wish.
No go to Window Tomcat server and stop its service by
stop tomcat sever
Go to start-up button and open PGAdmin-III
bellow box will appeared
create new database [dspace] and also create [pgcrypto] Extension also
Now click on database tab and restore dspacesql (gz) file where you have located your .gz file
after restoring dspace db
delete [assetstore] directory from C:/dspace/
copy new assetstore directory to C:/dspace/
then issue the following command in Window machine
open cmd
Go to
cd C:\dspace\bin\
dspace database info
dspace database migrate
dspace index-discovery -b
dspace filter-media
dspace index-discovery
dspace index-discovery -o
Then restart Tomcat in Window-10
Now check your backup is fully restored http://yourIP:8080/jspui
If you need any further help please book your slot: Here
How to generate statistics in Dspace 6.3
/dspace/bin/dspace stat-initial / dspace/bin/dspace stat-general / dspace/bin/dspace stat-report-initial / dspace/bin/dspace stat-rep...
-
sudo mysql -uroot -p koha_library < koha_library.sql sudo systemctl restart apache2.service sudo systemctl restart koha-common sudo ...
-
Software Requirements Software needed to run DSpace. Java JDK 8 Apache Maven Apache Ant PostgreSQL Apache Tomcat Create User Create a dspace...


