Backup Eonza Files program
The Eonza system features a built-in tool to [create a backup copy of the database]](backup-database.html), but what about backing up files stored on the server rather than in the database? For that, a special program named Backup Eonza Files was created. It backs up files in your information storage without the need to have an FTP or SSH access. But first let’s name the main capabilities and advantages of this application.
- Backup Eonza Files is a free open source program written on the Go language distributed under the MIT license.
- Cross-platform . You can download an executable of any program for your platform or compile it yourself under any OS supported by the Go programming language.
- The application works via the HTTP protocol and doesn’t require FTP or SSH access. You only need your login and password to access Eonza.
- Aside from downloading files the program can backup databases .
Backup Eonza Files has no any graphical interface, and all required parameters must be specified either via a command line during execution, or in the settings file. You can also set part of settings in the file, and specify another part in the command line.
Download Backup Eonza Files v1.0.1
|eonza.org • backupenz-src.zip
GitHub • backupenz-master.zip
|Source Code||Cross Platform||5.06 KB|
Below we review all available parameters and options both for the command line and the settings file.
The settings file is an ini-file that contains parameters passed to the program.
|Command-line parameter||--config||backupenz.exe --config c:\myeonza\myconfig.ini|
Settings file example
[Settings] Eonza = http://www.myeonza.site/admin User = admin Storage = c:\myeonza Log = "" Mirror = 0 Dbackup = 0
The corresponding command line execution would be
backupenz.exe -e http://www.myeonza.site/admin -u admin -s c:\myeonza
Information storage address
You should specify an address of your information storage. If the address is not specified the program asks to enter it after execution.
|Command-line parameter||-e||backupenz.exe -e http://www.eonza.com/test|
To connect to the system you need to specify your login. Note that only an administrator or owner of the system can backup files. If you don’t specify a login, the program asks for it on execution.
|Command-line parameter||-u||backupenz.exe -u admin|
You can specify a password to connect to the system in the settings file or in the command line, but for the sake of security we do not recommend either. You better not specify it at all and let the program ask for it on every execution.
|Command-line parameter||-p||backupenz.exe -p mypass|
You can specify a directory where all backup copies of your information storage are. Note that this directory will copy the hierarchy of the website starting from the domain name. For example, if you specified
Eonza = http://www.myeonza.site/eonza Storage = c:\myeonza
files will be saved to a directory named c:\myeonza\www.myeonza.site\eonza. Such an approach prevents occasional overwriting of files when multiple storages are backed up.
Reserve copies of files are saved with the same names and in the same the directories as on the server. If files on the web server are lost or damaged you only need to copy them from the local machine to the server, to the storage directory as is. If the parameter is not specified, files are saved to the current directory.
|Command-line parameter||-s||backupenz.exe -s "c:\myeonza"|
You can specify a log file to record results of program operation. If a log file isn’t specified, these data are put out to the console while operation.
|Command-line parameter||-l||backupenz.exe -l "c:\myeonza\backup.log"|
|Settings File||Log||Log = c:\myeonza\backup.log|
By default, the program only fetches new or updated files and downloads them. In this case, if a file was deleted from the information storage it still remains on your local machine. If you want the removed files were also removed from the backup copies, specify this parameter.
|Command-line parameter||-m||backupenz.exe -m|
|Settings File||Mirror||Mirror = 1|
Copying the database
Along with copying files you can make a backup copy of the database. The backup is stored in the backup subfolder. For example, c:\myeonza\www.myeonza.site\eonza\backup.
|Command-line parameter||-db||backupenz.exe -db|
|Settings File||Dbackup||Dbackup = 1|
If you run the program with the -h command line option, the present page will open displaying all the application settings.
|Command-line parameter||-h||backupenz.exe -h|