Menu

Backup server basics.

Ushakov Roman

Backup Server.

This program developed for backup files on central server. Main ideas of program:
1. Verioning of backup data
2. Remote client for backup with autorun
3. Automatic client update
4. Simple configuration (command line, config file, embedded)

How to start.

Command line parameters: java -jar SyncServer.jar [server=port|client] [user:pass@server:port] [backupDir1#Alias] [backupDir2#Alias] ...
Config file: sync.cfg
!server=port
or
!client=login:pass@server:port
backupDir1#Alias
backupDir2#Alias
**Embeded: **
Simply update sync.cfg in SyncServer.jar

How this work.

Server.
Server always run in repositary directory. Server start and only listen on default port 2345. When client conneced created 2 folders with names - [login] and [login].version - where login - login of client. Data not deleted from main folder - file moved form [login] to [login].version forlder. For stop server - kill them.

Client.
Connect to server login:pass@server:port. If port not specifed user default port. Now authorisation work only for login, pass not verifiy.
Default alias for backup folder is name of folder.
c:\BackupDir\123 - copy to server folder [user]\123
c:\BackupDir\123#MyBackup123 - copy to server folder [user]\MyBackup123
After backup is comlette client sleep for 2 hours and next backup and so on.
Backup good if size, name and last modification time of file is identical. If not file is updated. And old file is versioning.

** Logging.**

  1. Logging are print on console.
  2. Client log are stored on server in the root folder. For example client log for user "admin" with folder with alias "BackupDir" was stored in "admin\BackupDir.info" - for information log, and "admin\BackupDir.warn" - for error log. If errors no ".warn" log not stored.
  3. Server log are stored in "srv.log" in root of store.
  4. Server log for client are sored in "login.info" and "login.warn" folders.

The wiki uses Markdown syntax.

Project Members:


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.