Take backups of your mysql/mariadb databases and your files/folders. This bash script can be useful for linux server backups or migrations.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool