What's new

Welcome to the forum 👋, Visitor

Discover, download, and share the best FiveM scripts and Fivem mods. Find quality scripts, mods, and resources to enhance your FiveM server easily!

Script Fivem Database backup resource

Joined
Oct 7, 2025
Messages
1,454
Reaction score
779

Cfx server Database Backup resource​

For those who want to have a resource handle database backups, this will run within your FiveM or RedM server and create backups of your database.

Usage​

Currently this script only has a server console command to generate a backup within the backups/ directory, more will come.

Code:
# file name without the extension, the script will add it itself
# if no filename is passed it'll generate one based on current date & time
backup_database [backup_filename]

Config fields​

  • QuerySize:
    • Defines the size of each query batch within the system that obtains the data from the tables
    • Default: 100
  • ExcludedTables:
    • List the tables that shouldn't be backed up by the script
    • Default: nil - Accepts: string[] | false | nil
  • ExclusiveTables:
    • List the only tables that should be backed up, all others will be ignored
    • Default: nil - Accepts: string[] | false | nil

 

Cfx server Database Backup resource​

For those who want to have a resource handle database backups, this will run within your FiveM or RedM server and create backups of your database.

Usage​

Currently this script only has a server console command to generate a backup within the backups/ directory, more will come.

Code:
# file name without the extension, the script will add it itself
# if no filename is passed it'll generate one based on current date & time
backup_database [backup_filename]

Config fields​

  • QuerySize:
    • Defines the size of each query batch within the system that obtains the data from the tables
    • Default: 100
  • ExcludedTables:
    • List the tables that shouldn't be backed up by the script
    • Default: nil - Accepts: string[] | false | nil
  • ExclusiveTables:
    • List the only tables that should be backed up, all others will be ignored
    • Default: nil - Accepts: string[] | false | nil

*** Hidden text: cannot be quoted. ***
TG
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back