This tool is a helper for FreeFileSync. It can send you email with FreeFileSync logs and automate some backup related tasks. I currently use it on 10-20 servers and constantly try to improve/fix bugs.
This release is a full rewrite of fBackup.
Previous configuration files are not compatible and must be recreated.
- Old files
TaskName.iniandTaskName-auth.xmlare no longer used. - All configuration is now stored in a single XML file:
TaskName.xml. - Options
Shutdown PCandEject USBhave been removed (they were rarely used).
After upgrading, please re-run run_fbackup.cmd for each task to recreate the configuration.
-
Download and install FreeFileSync: Download the Latest Version - FreeFileSync
Suggested install path:C:\FreeFileSync\ -
Download fBackup directly from GitHub GitHub - frabnet/fBackup. -> Code -> Download ZIP
-
Unzip
fBackupinside the FreeFileSync folder:
C:\FreeFileSync\fBackup
-
Create a new Job with FreeFileSync as you like.
-
Save it as a Batch Job in the fBackup folder (
C:\FreeFileSync\fBackup\) using a simple name, e.g.CopyToNas.ffs_batch
While saving, check:Progress window: Close automatically[v] Ignore errors
-
Execute
run_fbackup.cmdand enter the same task name.
This will run the configuration wizard where you can specify email settings.SendEmail→ when to send reports (Everytime/Never/OnlyError)SmtpServer→ your SMTP server (e.g.smtp.example.com)Port→ SMTP port (default465)UseSSL→ whether to use SSL (true/false)User→ your SMTP usernamePassword→ your SMTP password (will be encrypted)From→ sender email addressTo→ recipient email addressSubjectPrefix→ prefix for the email subject
Configuration is saved per task in an XML file called
TaskName.xml.Nerd note: if SSL on port 465 fails, the script will retry with TLS on port 587.
You can disable this behavior by editing the script. -
Create a new Scheduled Task with Windows Task Scheduler and select
Run a program:- Program/script:
%windir%\system32\WindowsPowerShell\v1.0\powershell.exe - Add arguments:
-NoProfile -ExecutionPolicy Bypass -File "fbackup.ps1" -TaskName CopyToNas - Start in:
C:\FreeFileSync\fBackup
Remember to change
CopyToNaswith the name of the task you want to run, andC:\FreeFileSync\fBackupwith the actual path. - Program/script: