Advanced Automatic Backup (SF+DB)(Local+Remote)

Alte resurse ce nu se regăsesc în forumurile de mai sus.
Avatar utilizator
Papix
Nou Venit

Nou Venit
Mesaje: 18
Membru din: 27 Oct 2022, 12:06
Regat: Shinsoo
Aprecieri: 6  
Mulţumiri: 42  
Discord: Copiază ID
Medalii

​Hello community,

Today i create one script in php to backup the database and server files remotely and locally.

I also decided to receive at the end of each backup a notification in a specific room in my discord server saying that the backup was finished successfully.

I also left the possibility to enable/disable certain functions such as if you only want to backup only db/sf or if you don't want to use discord notifications.

Screenshots
Imagine
Imagine

Step By Step
  • On the game server (FreeBSD) install the zip package using the command: pkg install -y zip.
    Upload the script to your web server nd give it permission 777.
    Edit the settings with your access data on cron.php.
    Access the file from the browser to see if everything is right (yourdomain.com/cron.php?api_protected=Papix).
    Now to make the backups automatic just create the cron with the time you want.
Notes
  • The script is not inserted into the game server (FreeBSD) but into the web server (I use ubuntu).
    For security reasons do not forget to change the api key.
    Do not store your backups in public directories, store them for example before the /public_html folder.
    Make sure that on the web server you use directories that have permissions.
Discord Notification
After you created your webhook replace in line 34 (cron.php) with yours.


Download
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.


 

​
Pentru acest mesaj, Papix a primit 4 (de) mulţumiri
KinKade • k4nab1s • madelni • HellBoy
Imagine
Afișează semnătura
Răspunde
Răspunsuri
3
Vizualizări
335

Înapoi la “Altele”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator