need help, backup and restore for beginners

Almotra5 years ago

Hello,
Sorry, I am french and use google translation.
I'm using Traccar on Raspberry and want to create a backup to upgrade to the latest version.
The problem is that I do not know anything about linux, I just connect to ssh.
Could someone explain to me how?

  • Which file to save?
  • Linux command to save them from my raspberry to my computer?
  • Linux command to restore them from my computer to my raspberry?

Cordially
Alex

juan korth5 years ago

Nous devrions d’abord voir quelle base de données vous utilisez. Si le défaut. ou un autre exemple SQL etc.
En sauvegardant simplement la base de données et le XML dans le dossier conf. Atteint

voir si c'est dans /opt/traccar/conf et /opt/traccar/data/

Liens utiles
https://linux.die.net/man/1/scp

salutations

Almotra5 years ago

Thank you for this answer, I use the default database.
so I need to get / opt / traccar / conf and / opt / traccar / data /
But I do not know how to do in linux to save and restore them?

juan korth5 years ago

https://ftp.kh.edu.tw/Linux/Redhat/en_6.2/doc/gsg/s1-managing-working-with-files.htm

Je vous laisse un manuel pour vous apprendre à naviguer dans la ligne de commande.

Vous pouvez utiliser filezila pour le faire graphiquement. par exemple.

Almotra5 years ago

thank you, I will look at your link.
I tried with filezilla but the folder home / pi / traccar / data is empty
While in ssh if I do cd / opt / traccar / data then ls, I see two files (database.mv.db and database.trace.db)

With fileziila I am connected to sftp: //192.168.1.85, user: pi, my password and port 22.
That's right ?

juan korth5 years ago

copy the file database.mv.mdb
and the xml of / conf

that's it