Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script Automatic FiveM Server Backup

C4rlos

Gold Elite
Joined
Jun 3, 2023
Messages
95
Reaction score
20,583
Points
296
Location
California
1686847943963.png


Create a folder in your main server root (where the FX Server Starter Is) called backup. Edit the powershell script and change the source path to the folder you are backing up, for example: $sourcePath = "C:\MyServer\resources"

Change the destination path to where the backup should be stored: $destinationPath = "C:\Backups\ServerBackup_$backupDate"

The _$backupDate appends the backup time to the file.

Open Windows Task Scheduler> Right Click > Create Basic Task > Name It > Trigger how often you want the backup to run > Action > Start a Program, type powershell.exe In the Add arguments box type -File "path to script", for example: -File "C:\Backups\ServerBackupScript.ps1", then for the "start In" box, put the path where the script runs from.

 
Top